Search:

Type: Posts; User: mhandlon

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    6,422

    Thank you, using SendMessage I was able to send...

    Thank you, using SendMessage I was able to send messages w/o a problem and use caller functions to get @ the functions I wanted. The one thing I don’t get is how to pass variables, pointers,...
  2. Replies
    8
    Views
    6,422

    In the modeless dialog's class I added the line ...

    In the modeless dialog's class I added the line


    #define WM_LOADFILE WM_USER+0x100

    in the class header and am using sendmessage as so.


    m_pMain->SendMessage(WM_CLOSE);
  3. Replies
    8
    Views
    6,422

    Modeless Dialog Communication (MFC)

    I’m trying to figure out how to pass variables back and forth between a modeless dialog and my main program. The program is a dialog based application and I’m trying to write a live trade window...
  4. Thread: _snprintf

    by mhandlon
    Replies
    5
    Views
    2,446

    It's declared as a string, I decided the call it...

    It's declared as a string, I decided the call it sSymbol instead ss not a good name.



    bool PriceTest::GetFeed(string sSymbol)
    {

    printf( "example is using CSCO as a stock symbol\n" );
    ...
  5. Thread: _snprintf

    by mhandlon
    Replies
    5
    Views
    2,446

    ok I passed in the string ss but when I debug.. ...

    ok I passed in the string ss but when I debug..



    _snprintf( szSub,
    sizeof szSub,
    "SQ.%s. .%s",
    m_szPart,
    ss
    );
  6. Thread: _snprintf

    by mhandlon
    Replies
    5
    Views
    2,446

    _snprintf

    I have some code



    char szSub[255];

    _snprintf( szSub,
    sizeof szSub,
    "SQ.%s. .CSCO",
    m_szPart
  7. Thread: _snprintf

    by mhandlon
    Replies
    1
    Views
    1,431

    _snprintf

    I have some code



    char szSub[255];

    _snprintf( szSub,
    sizeof szSub,
    "SQ.%s. .CSCO",
    m_szPart
  8. Using a dll to call a dialog in OnInitDialog of another.

    I'm trying to use a dll file, I added the header file to the project put the dll and lib in the project directiory, then included the .h file but when I try to use a function I'm getting --->...
  9. Thread: Linker Errors

    by mhandlon
    Replies
    1
    Views
    3,088

    Linker Errors

    I have a dll I’m trying to add functionality to, this file already opens a dialog window. I want to call another dialog. I want to call another dialog in the constructor of this one, which I...
  10. Replies
    3
    Views
    2,005

    Sorry the 2 errors I get are... ...

    Sorry the 2 errors I get are...

    Error 504 error LNK2019: unresolved external symbol _B_GetNYTimeTokens@20 referenced in function "public: static void __cdecl Stock::FormatNYTime(__int64,class...
  11. Replies
    3
    Views
    2,005

    The original project was created in Visual C++...

    The original project was created in Visual C++ 2003, though not by me, and it compiles as is with no problems. I’m using 2005 so something must go wrong during the project conversion, here (at...
  12. Replies
    3
    Views
    2,005

    Linker Errors... what does this mean?

    Error 2 error LNK2019: unresolved external symbol _B_GetNYTimeTokens@20 referenced in function "public: static void __cdecl Stock::FormatNYTime(__int64,class std::basic_string<char,struct...
  13. Replies
    1
    Views
    1,592

    radio buttons?

    How do you link a variable to a group of radio buttons... I want to an integer to -1 in a dialog constructor, then set the value to 0-5 depending on the radio button selected?
  14. Replies
    3
    Views
    1,090

    I tried creating an object in both the...

    I tried creating an object in both the constructor and in


    BOOL CBasic_Order_WindowDlg::OnInitDialog()
    {
    CDialog::OnInitDialog();

    // Set the icon for this dialog. The framework does this...
  15. Replies
    3
    Views
    1,090

    How do you set this up?

    I have a console program I’m trying to put into an dialog MFC api… I’ve implemented the class… fixed syntax and linking errors and so on but now that I’m trying to actually use it I’m having some...
  16. Replies
    6
    Views
    1,521

    regsvr32 "C:\Documents and Settings\office3\My...

    regsvr32 "C:\Documents and Settings\office3\My Documents\Visual Studio 2005\Projects\Basic_Order_Window\Basic_Order_Window\bin\csclient.dll"

    I tried that and it says DllRegisterServer entry point...
  17. Replies
    6
    Views
    1,521

    How do I do that?

    How do I do that?
  18. Replies
    6
    Views
    1,521

    I threw it in the debug directory, rebuilt the...

    I threw it in the debug directory, rebuilt the application and it still didn't work.
  19. Replies
    6
    Views
    1,521

    SEt Visual Studio 2005 set .dll locations?

    In visual studio where do you set the location of dll files for your project. Everything builds fine but when I start the exe it says csclient.dll was not found.

    .... I thought everything was...
  20. Replies
    4
    Views
    1,045

    So it's reading from UserConfig.ini file 3...

    So it's reading from UserConfig.ini file 3 directories up.

    In my project implementation I’m including the ini file with all the source code so 1 directory up from the build. Would...
  21. Replies
    4
    Views
    1,045

    Not coded correctly... it's from an api template?

    Not coded correctly... it's from an api template?
  22. Replies
    4
    Views
    1,045

    What is this code doing?

    bool Trade::ReadConfiguration()
    {
    bool bGotConfigValues = true;
    char sIniPath[255];
    GetCurrentDirectory( sizeof(sIniPath), sIniPath );
    sprintf( sIniPath,"%s\\..\\..\\%s.ini",sIniPath,...
  23. Replies
    3
    Views
    1,139

    Never mind the above question I realized I didn't...

    Never mind the above question I realized I didn't include some libs into my project settings... after that it was fine. I do still have 1 more question though.

    I'm implementing a networking...
  24. Replies
    3
    Views
    1,139

    LNK2019: unresolved external symbol

    I built an MFC GUI and am now trying to tie in a networking API. With the api came come console based examples, which are pretty straightforward. But, I’m trying to add the trader class to my...
  25. Replies
    4
    Views
    6,774

    I'm trying to basically just get the input down...

    I'm trying to basically just get the input down to a string to throw into a networking api.
    I know how to convert a CString to a String:



    CString cs("Hello");
    std::string s((LPCTSTR)cs);...
Results 1 to 25 of 31
Page 1 of 2 1 2