CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: daddy8ball

Page 1 of 5 1 2 3 4

Search: Search took 0.05 seconds.

  1. RegQueryValueEx crashes. What in the hell did I do so wrong?

    I'm trying to get a binary value from the registry. I am missing something here. Can anyone help?

    //Assume key is open.
    DWORD cbData = sizeof(int); //This is probably wrong.
    DWORD type =...
  2. delete[] drama. Can someone clear this up once and for all??

    Why does this work???

    if( fFile != NULL )
    {
    int len = iPos+iLen;
    char* buf = new char[fileSize];
    fread( buf, sizeof(char),fileSize, fCurrentFile );

    fwrite( buf,...
  3. Insert a line of text into a file. There's gotta be an easy way.

    I am jumping through hoops here trying to do something I imagine would be relatively simple. I am trying to insert
    some text at a specific location into an html file. For instance, immediately after...
  4. Re: DialogProc function parameters...can I get info about calling class??

    That sounds pretty good, but is it 'better' than just decaring a gobal pointer to the class?
  5. DialogProc function parameters...can I get info about calling class??

    I have a static LRESULT CALLBACK DialogProc function which is called from my class like so:

    void CMyClass::DialogBox()
    {
    INT_PTR res;
    res = DialogBox( _Module.GetModuleInstance(),...
  6. I AM PRETTY **** PROUD OF MYSELF..EAT THIS DENNIS RITCHIE!!!

    Hey...I used a static stl map today at work. I am pretty proud of myself. In all the schooling I have ever had, in all the c++ books I have ever read, I have never seen the like. Go ahead gurus and...
  7. Re: I know the textbook answer. I NEED TO SEE CODE THAT WORKS! LRESULT CALLBACK member fxns.

    >> "Most of the Windows API callbacks offer this feature by having a "user data" which will arrive as one of the function parameters of the callback, you can then typecast this user data into a...
  8. Re: I know the textbook answer. I NEED TO SEE CODE THAT WORKS! LRESULT CALLBACK member fxns.

    Phillip's suggestion to use scope operator fixed the problem. But now I am having a whole new set of problems.
    The whole reason I wanted to incorporate that particular function ( DialogProc ) into...
  9. Re: I know the textbook answer. I NEED TO SEE CODE THAT WORKS! LRESULT CALLBACK member fxns.

    You are the man!! Thanks! :)
  10. Re: I know the textbook answer. I NEED TO SEE CODE THAT WORKS! LRESULT CALLBACK member fxns.

    No matter what I do in the .cpp file, nothing compiles. I either get an unresolved external symobl or the
    program no longer recognizes basic Win32 dialog box functions.

    If I do this:

    // In...
  11. I know the textbook answer. I NEED TO SEE CODE THAT WORKS! LRESULT CALLBACK member fxns.

    This is often posted question on codeguru. It has been answered many times. I know the answer to my question.
    I need to declare my LRESULT CALLBACK funcion as static. Well, I do but it still doesn't...
  12. Re: Specified resource type not found in image file. Say WHAT?????

    You guys, Alex & Paul seem to know quite a bit. Does this come from reading a lot of books? Experience? Going to
    a really good college? Just being super smart? I guess what I'm getting at is: How...
  13. Re: Specified resource type not found in image file. Say WHAT?????

    Thanks! Finally, someone who knows what the hell I'm talking about. How, though, do I add RT_DIALOG
    to the .exe file? I am trying to do this within a .dll. Hell, is this even possible? I haven't...
  14. Specified resource type not found in image file. Say WHAT?????

    Here's what's in the resource file....

    #define IDD_DIALOG1 203

    Here's where I create the dialog..


    INT_PTR res;
    res = DialogBox( GetModuleHandle(0),...
  15. MSDN=NO HELP! DLL? Only a true Code GOD can help!!

    I need to create a dialog box in a non MFC dll. Does anybody have any clue at all on
    how to do this? Seriously, I've looked at examples on MSDN, they are all using
    MFC. I need win32 dialog in a...
  16. CreateDialogIndirect()..Nothing happens! What am I doing wrong?

    I am attempting to create a dialog in memory using a dialog template in a Win32 IE Toolbar control. ( a .dll )
    I have pretty much lifted the source code straight off of MSDN, but when I invoke the...
  17. Re: RegSvr32.exe.".module can't be found.".THANKS FOR ALL THE HELP.!

    Thanks a lot guys. Really appreciate your help! What it was an OLD version of one dll and the WRONG build of another .dll with completely different settings. A lot of trial and error finally fixed...
  18. Re: RegSvr32.exe.".module can't be found.".BS! I'm looking right at it!!!

    Paul M.
    You are current resident Guru on this thread. I suspect a configuration error. Off the top of your
    head, anything it might be? It seems that it registers correctly in debug but NOT in...
  19. It is a config or build problem NOT a cmd line problem.

    I am thinking it has something to do with the ReleaseMinDependency build. That screws everything up.
    What exactly is the difference in the registry ( if any ) that these builds will generate? What...
  20. Re: RegSvr32.exe.".module can't be found.".BS! I'm looking right at it!!!

    What are you talking about??? Can you give me an example of a command line that would work?
  21. RegSvr32.exe.".module can't be found.".BS! I'm looking right at it!!!

    App is IE toolbar button.
    I build app in debug & it works good. ( Toolbar button show up on IE toolbar. )
    I build app in ReleaseMinDependency. ( No friggin toolbar..must not be registered...
  22. 2 Windows2000 questions: system tray & activeX

    Not really programming questions, but I figure someone here might know the answer:

    Is it possible to change the default system tray icon in a given application. For instance, can you change
    the...
  23. Replies
    3
    Views
    876

    Re: Non MFC Dialog...step by step needed..

    >>No offense, but it sounds like you aren't too familiar with Windows basics.

    No offense taken. However, I usually work in an MFC supported environment. I am very
    familiar and confortable in...
  24. Replies
    3
    Views
    876

    Non MFC Dialog...step by step needed..

    Sigh..I have a *NON-MFC* and I need to add a dialog, add buttons, edit boxes etc on this dialog and so on and so forth. I really don't have the
    faintest idea on what functions to use, call, lookup,...
  25. Solved mysterious character problem...but how? why?

    This is regarding a previous post ( Crawling around office whimpering..etc. )

    What is the difference between

    char* base = new char(20);
    and
    char* base = new char[20];

    Declaring base the...
Results 1 to 25 of 108
Page 1 of 5 1 2 3 4





Click Here to Expand Forum to Full Width

Featured