User Profile

Collapse

Profile Sidebar

Collapse
sandeepkavade
sandeepkavade
Last Activity: May 13 '10, 05:25 AM
Joined: Mar 23 '07
Location: India
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Disabled button calling even handler on button click

    Hi
    I am having button on form in C#. It does take 2-3 seconds to complete the operation meanwhile the button is disabled. But if the user clicks on that button when it is disabled, after completion of first operation it will again try to execute the handler again. how should I avoid the execution of event handler when the button is disabled?

    here is the code snippet: (Refer the attachment for test application)

    Code:
    public
    ...
    See more | Go to post

  • sandeepkavade
    started a topic Problem with PropertyGrid

    Problem with PropertyGrid

    Hi,
    I am basically a VC++ developer but now working on C#.
    I am having a assembly in that i have added a UserControl and on that UserControl I am having a tree-view control and Property Grid control. As and when user selects the different nodes I am populating the corresponding properties in that grid. For the normal properties its working perfectly. But when I have to choose the property from the drop-down list. Its creating the problem....
    See more | Go to post

  • sandeepkavade
    replied to How to make animated gif file
    in C
    Actually it is the assignment given to me to create a single gif file using existing bmp files using GDI+ in C++. But I havent found anything on that how to achieve the same.
    See more | Go to post

    Leave a comment:


  • sandeepkavade
    replied to How to make animated gif file
    in C
    i already visited this page. but its the utility. I want to achieve same by coding in C++ using GDI+. Hope now i am clearer with my problem...
    See more | Go to post

    Leave a comment:


  • sandeepkavade
    started a topic How to make animated gif file
    in C

    How to make animated gif file

    Hi
    I am having 10 bmp files and i want to make 1 gif file out of that using GDI+. Each bmp file should be displayed for particular time period. I searched a lot but unable to find the answer. I want to do it in C++.
    See more | Go to post

  • sandeepkavade
    started a topic How to find the token for logged in user?
    in C

    How to find the token for logged in user?

    Hi i want to impersonate the process in SYSTEM, Logged in user and specified user.
    for Specified user i am giving the username and password and impersonation is working fine. The code is taken from http://msdn.microsoft. com/en-us/library/aa379608(VS.85) .aspx The main process starts in SYSTEM account so by only using CreateProcess() api i can handle the case of SYSTEM user. But i am not finding any way to handle the logged in user case. How...
    See more | Go to post

  • sandeepkavade
    started a topic How to remove COM dll completely from memory?
    in C

    How to remove COM dll completely from memory?

    hi all,
    i have a dll say abc.dll loaded in memory and i have to unload abc.dll and load another dll of same name but it may differ in version number. i tried to unregister the first dll and register the second dll programatically . but still the code refers to the first dll. I think its because the first dll is still in memory. Am i right? Then how to completely remove the that dll from memory? I also renamed the first dll after unregistering...
    See more | Go to post

  • sandeepkavade
    started a topic WMI Impersonation Problem
    in C

    WMI Impersonation Problem

    Hi,
    i want to get number of printers attached to my computer, i use Win32_printer class to get the printers, but before connecting WMI i impersonating to some other user. But the WMI gives the output not for the impersonated user but the one who has launched it.
    I am launching the process in system accout and trying to impersonate to the logged in user to get the printer information of the logged in user. (Initially i have to launch...
    See more | Go to post

  • sandeepkavade
    started a topic Finding SQL Licensing information?

    Finding SQL Licensing information?

    hi all,
    I want to retrive the licensing information such as Licensing count, which
    licensing is currently in use, whats its type (per processer or per user),
    licensing code etc. From where i can retrive the information? I want to do it
    for Sql Server 2005 and 2000. I read the blog "Tracking License Information
    in SQL 2005" on
    http://blogs.msdn.com/sqlblog/archive/2006/11/10/tracking-licens...
    See more | Go to post

  • sandeepkavade
    replied to How to run vbscript from C++ code?
    in C
    I havent tried with system().
    i was using the same code previously but at that time i was creating xml by concatnation of values like
    resultset = resultset & "<row "
    resultset = resultset & value
    resultset = resultset & "/>
    and then
    execute = resultset

    at that time the function IScriptControl: :Run() gives me what i was expecting. but now i changed the script...
    See more | Go to post

    Leave a comment:


  • sandeepkavade
    started a topic How to run vbscript from C++ code?
    in C

    How to run vbscript from C++ code?

    Hi all,
    How to vb script from a C++ code.

    the script is like:

    Function execute()
    .
    .
    .
    .
    .
    .
    .
    execute = obj.xml 'obj.xml is a xml
    End Function

    the script is working fine if i write it in a vbs file and double click on it.
    but how to call it from a C++ code.

    I tried with IScriptControl: :Run but the its not...
    See more | Go to post

  • it has to be implimented in C++. They are xml files and i have to search for value of particular node. Reading the file and using MSXML is better option or taking it in CString and calling .find() will be a better option....
    See more | Go to post

    Leave a comment:


  • sandeepkavade
    started a topic Searching multiple files for text or phrases?
    in C

    Searching multiple files for text or phrases?

    Hi all,
    i want to search for files containing particular phrase, just like windows "A word or phrase in file:" utility in search option. Does anybody knows any windows API or programming logic for this issue?
    See more | Go to post

  • sandeepkavade
    started a topic Problem with DispEventAdvise
    in C

    Problem with DispEventAdvise

    hi all,
    i am having a sdk with fires an event.
    i am trying to catch that event in other C++ console application,
    i have derived my CEventSink class from IDispEventImpl

    EventSink.h:

    #pragma once

    #include <atlbase.h>
    #include <atlcom.h>


    static _ATL_FUNC_INFO OnEvent = {CC_STDCALL, VT_EMPTY, 5, {VT_UI4, VT_BSTR, VT_BSTR, VT_I2, VT_BSTR}};...
    See more | Go to post

  • sandeepkavade
    started a topic UTF-8 and Multibyte
    in C

    UTF-8 and Multibyte

    hi all
    can anybody tell me is whats the difference between UTF-8 and multibyte.
    and from where i can find more information on the same?
    Thanx in advance.
    See more | Go to post

  • sandeepkavade
    started a topic API for unicode
    in C

    API for unicode

    hi all,
    is there any api to check whether the file contains unicode, utf-8 or ansi characters?
    See more | Go to post

  • sandeepkavade
    started a topic Error while installing VS6

    Error while installing VS6

    hi everybody,

    i am trying to install VS6 just to review the old code on my machine (XP Prof SP2). but it is giving following error.

    setup has encountered a problem in launching the followning command line:
    "wpie15.exe " /q:a/r:n.
    if you have a system directory that contains a % sign, or the directory names *starts* with a space (i.e. 'C:\win95\syste m'), then setup will fial. please restart setup...
    See more | Go to post

  • sandeepkavade
    started a topic How to write a map to file.
    in C

    How to write a map to file.

    hi all,

    i want to write a map to a file and then read it again.
    but while reading it is not wrorking.

    the map declaration is:[code=cpp]
    typedef map<int,LogSett ings> MapType;
    typedef MapType::value_ type ValuePair;

    where LogSettings is a structure:

    struct LogSettings
    {
    unsigned long dwSession;
    TCHAR *szFilePath;...
    See more | Go to post
    Last edited by sicarie; May 24 '07, 01:43 PM. Reason: Please use [code] and [/code] tags around your code. Thanks!

  • sandeepkavade
    started a topic Problem with constructor overloading.
    in C

    Problem with constructor overloading.

    hi all,
    i am having a class and i want to impliment 2 overloaded constructors as:
    in .h file:
    Document(const char* filename=NULL);
    Document(const wchar_t* filename=NULL);

    in .cpp file

    Document:: Document( const char* filespec )
    {
    m_pdoc = NULL;
    load( filespec );
    }

    Document:: Document( const wchar_t* filespec )
    {
    m_pdoc = NULL;...
    See more | Go to post

  • sandeepkavade
    started a topic How to convert std::wstring to const WCHAR*
    in C

    How to convert std::wstring to const WCHAR*

    hi all
    i want to convert wstrint to WCHAR* how to do that?
    i am getting following error:

    error C2664: 'UnicodeToUtf8' : cannot convert parameter 1 from 'std::wstring *__w64 ' to 'const WCHAR *'
    See more | Go to post
No activity results to display
Show More
Working...