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

Search:

Type: Posts; User: chiuyan

Page 1 of 17 1 2 3 4

Search: Search took 0.33 seconds.

  1. Replies
    11
    Views
    1,084

    Re: i am suicide please help me...

    well, if your MainFunc is returning void, why does your typedef'd func return an int? if the MAINFUNC typedef is going to be used to call the MainFunc method in your dll, then your typedef should...
  2. Replies
    1
    Views
    593

    Re: DEBUG Message??

    look at the OutputDebugString api

    HTH
    --michael
  3. Replies
    1
    Views
    814

    Re: Learn Borland C++ Designing GUI

    Sorry, I do not know any resources for Borland gui building, but i am curious as to why your "application can only be run under Dos Mode" if you use VC++

    --michael
  4. Replies
    11
    Views
    1,084

    Re: i am sucidle please help me...

    your prototype is wrong. First, this is the C++ language, so this overuse of the struct keyword is bad (or atleast unnecessary). declare your variables like thisEUData euptr[DFILESIZE],...
  5. Replies
    2
    Views
    738

    Re: Playing RA, MP3 formats in VC++

    if you (or the user) have microsoft's media player installed, you can the Microsoft windows media player control to play both ra and mp3 files (although the ra support is not as good or up to date as...
  6. Replies
    14
    Views
    1,184

    Re: Function Overloading with Inheritance

    You actually tried this code, and it actually called A::Doit? What compiler are you using, because neither VC6 SP3 or gcc v2.95.2 will compile it for me.

    Thanks,
    --michael
  7. Thread: CFileDialog

    by chiuyan
    Replies
    6
    Views
    921

    Re: CFileDialog

    much thanks. it was the OFN_SHAREAWARE flag, which the documentation describes
    Specifies that if a call to the OpenFile function fails because of a network sharing violation, the error is ignored...
  8. Replies
    14
    Views
    1,184

    Re: Function Overloading with Inheritance - It worked for me...

    this does not work, if you noticed, calling Doit with a char parameter resulted in your B:doit, which takes an int parameter, being called. This "works" because a char can easily be converted to an...
  9. Thread: CFileDialog

    by chiuyan
    Replies
    6
    Views
    921

    Re: CFileDialog

    i do not want to select a folder, i want to select a file. i just do not want the dialog to attempt to access that file. SHBrowseForFolder only displays folders.

    Write a small program that uses...
  10. Thread: CFileDialog

    by chiuyan
    Replies
    6
    Views
    921

    Re: CFileDialog

    The GetOpenFileName function has the same effect as the CFileDialog, with the Dialog complaining if you select a file that is currently locked and click the open button.

    I do not want to actually...
  11. Thread: CFileDialog

    by chiuyan
    Replies
    6
    Views
    921

    CFileDialog

    I want to use a CFileDialog, just to let the user browse for a file name. However, if the file the user selects is in use, then the CFileDialog complains. Is there a way to turn this off, so that...
  12. Replies
    3
    Views
    656

    Re: cleaning up gracefully

    Yeah, It seems to be about a 5 minute wait or so (but I am sure that is configurable somewhere). I was just surfing for more options :-)

    Thanks,
    --michael
  13. Replies
    3
    Views
    656

    cleaning up gracefully

    I have a COM server that some application can instantiate and start working with. This server has no User Interface at all, so it must be started and stopped via the applications that want to use...
  14. Replies
    2
    Views
    609

    Re: Dialog Box - Window Handle

    if you are calling this method from within your CMyDialog class, then just use the this variable. You probably want to pass an HWND though, and not a pointer to your dialog, so then you would just...
  15. Replies
    3
    Views
    2,376

    Re: Safe Casting of LPARAM

    do not really understand what you are asking for, but you cannot cast a CString to a LPARAM. you can cast a CString* as an LPARAM, or cast the string that the CString refers to as an LPARAM (i.e....
  16. Re: Urgent- Components Compatibility between NT and CE.

    why does the CoCreateInstance fail? It returns an error code that should tell you why.

    Also, consult the help files and make sure that you are not using any Win32/MFC functions that are not...
  17. Thread: DLL ??

    by chiuyan
    Replies
    3
    Views
    533

    Re: DLL ??

    Perhaps I do not fully understand the question, but here is my answer.

    the size of the CString s will be determined at runtim--CStrings are allocated dynamically. The size of the constant string...
  18. Replies
    2
    Views
    964

    Re: Debug vs. Release DLL

    no, their really shouldn't be any problems at all, but keep in mind that some things are going to be different in your debug dll, like memory allocations and stuff will be handled differently.

    HTH...
  19. Replies
    4
    Views
    630

    Re: Arrays - atoi function

    The function atoi converts an alphanumeric character to an integer. If you want a floating point number, then you should use atof.

    --michael
  20. Replies
    4
    Views
    656

    Re: Arrays - atoi function

    The function atoi converts an alphanumeric character to an integer. If you want a floating point number, then you should use atof.

    --michael
  21. Replies
    6
    Views
    755

    Re: Unneeded #includes

    how many header files are there? you could always just wrap you headers in the
    #if !defined (MYHEADER)
    #define MYHEADER
    // header file stuff
    // ...
    #endif

    Then the #includes will not really...
  22. Thread: i'm dying here

    by chiuyan
    Replies
    26
    Views
    2,390

    Re: i'm dying here

    if your teacher really doesn't teach, then complain to his/her supervisor. Having other people do you work for you does not teach you anything either.

    Now, if you want help with this assignment,...
  23. Replies
    3
    Views
    1,332

    Re: Memory Leak Detector

    Dev Studio has a pretty good memory leak detection utility, i do believe that it is always on (in Debug mode), and you just need to run your application through the debugger and watch the output...
  24. Thread: Localization

    by chiuyan
    Replies
    4
    Views
    762

    Re: Localization

    When I had to do this, I took all Constant strings out of my application and replace them with calls to a function with a unique id as a parameter. I then defined a text file that had this unique id...
  25. Thread: dynamic dialog

    by chiuyan
    Replies
    1
    Views
    598

    Re: dynamic dialog

    In reply to:

    Q?: How do I capture any events that might change the command string (i.e. text entry or radio selection) so that the command string can be dynamically updated as the user chooses...
Results 1 to 25 of 424
Page 1 of 17 1 2 3 4





Click Here to Expand Forum to Full Width

Featured