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,...
Type: Posts; User: mhandlon
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,...
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);
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...
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" );
...
ok I passed in the string ss but when I debug..
_snprintf( szSub,
sizeof szSub,
"SQ.%s. .%s",
m_szPart,
ss
);
I have some code
char szSub[255];
_snprintf( szSub,
sizeof szSub,
"SQ.%s. .CSCO",
m_szPart
I have some code
char szSub[255];
_snprintf( szSub,
sizeof szSub,
"SQ.%s. .CSCO",
m_szPart
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 --->...
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...
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...
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...
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...
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?
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...
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...
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...
How do I do that?
I threw it in the debug directory, rebuilt the application and it still didn't work.
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...
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...
Not coded correctly... it's from an api template?
bool Trade::ReadConfiguration()
{
bool bGotConfigValues = true;
char sIniPath[255];
GetCurrentDirectory( sizeof(sIniPath), sIniPath );
sprintf( sIniPath,"%s\\..\\..\\%s.ini",sIniPath,...
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...
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...
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);...