|
If you want to add manual a variable for contol what happens?
|
|
|
|
|
Don't ask me why, but it works now.
I don't change anything into Visual Studio i only watched the user permissions of the source-files
Anyway - big thanks for your help
|
|
|
|
|
Please help me to find opensource bayesian antispam filter on C or C++ for Windows
|
|
|
|
|
Bezginoff wrote: Please help me to find opensource bayesian antispam filter on C or C++ for Windows
See here[^]
hope it helps ...
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
Hi all,
I've copied a VC6 project directory and changed the name, then tried to load the .dsw file from the new directory into the IDE. The Workspace Class View gets down to a handful of files left to load, then just hangs around doing nothing and never completes. The UI hasn't hung completely as I can close it without any error messages, I just can't get it to complete loading the copied project.
Any ideas?
|
|
|
|
|
Deleting the 13MB .ncb file then reloading fixed it. The new .ncb file is 2.25MB and the project loads MUCH faster now.
|
|
|
|
|
Hi Guys
Just wondering if anybody can help me out with XML extraction using C. I have an XML line like so:
<status>00<\status>
There is a status tag in front of the above as well but it seems to dissapear after posting the message.
My question is how do i get the 00 out of that string.
Thanks in Advance
Keith
|
|
|
|
|
I am having a script file in mysql...i have writeen some sql queries in it.
now i can run this script file om command prompt thotough source command.
but i have to make a code in c++ or mfc, through which i can run directly that script file without going to command prompt.
I am using batch file..but that also not working..
i wanna use system command of mfc...but that is also not working..
please help me...
|
|
|
|
|
Running a .BAT file? Did you try ShellExecute() ?
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
@echo off
cd \mysql\bin
mysql -urrot -ppwd
\. try.sql
this is my lines in batch file...
in last line i have use source command
but when i run this file promt gos to mysql.exe
but not run the script file...
is their any bug in my code????????
|
|
|
|
|
|
divya_eclairs wrote: but when i run this file promt gos to mysql.exe
but not run the script file...
What do you mean by prompt goes to mysql.exe? Or, tell what you want your batch file to do?
|
|
|
|
|
I am making a popup menu resource in my MFC project.
I can call it in OnRButtonDown event with code below :
CMenu menuPop;
menuPop.LoadMenu(IDR_MENU_MAIN);
POINT ptMouse;
GetCursorPos(&ptMouse);
menuPop.GetSubMenu(0)->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, ptMouse.x,ptMouse.y,this);
All i want to do is to change check of items. Its first menu items is checked by default.
I tried code below to make first menu item unchecked but it didnt work :
CMenu menuPop;
menuPop.LoadMenu(IDR_MENU_MAIN);
menuPop.CheckMenuItem(0,MF_BYPOSITION | MF_UNCHECKED);
How can i set check states of menu items in my popup style -context menu ?
|
|
|
|
|
MF_CHECKED!!!
Didnt you find in the fine MSDN?
Greetings from Germany
|
|
|
|
|
I dont think that you understand , read it again , you will MF_UNCHECKED flag instead of it , however it doesnt matter i cannot set checks !
|
|
|
|
|
I didnt get that point.
Here we go again:
CMenu *pPopup = menuPop.GetSubMenu(0);//this one gets to show
pPopup->CheckMenuItem(0,MF_BYPOSITION | MF_UNCHECKED);//uncheck that one
//after that going to the user
pPopup->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, ptMouse.x,ptMouse.y,this);
Greetings from Germany
|
|
|
|
|
Thank you very much for your reply but your solution sets its checked or unchecked for once , and it changes position of popup menu and re-show it.
|
|
|
|
|
Thats I hardly believe.
First change the menu THAN show it.
I also prefer to work with the MF_COMMAND flags because it is better readable.
Greetings from Germany
|
|
|
|
|
Unfortunately MSDN says that we cant use MF_BYCOMMAND with popup menus , otherwise it would be very good in the name good code with working defines of resource IDs. (So i am making my own defines)
I think i will handle it
Thank you very much for your help effort...
|
|
|
|
|
Hello,
I have used InitModalIndirect() for dialog box creation which is created successfully because the function returns 1 after debug but the dialog box is not visible even if I use CDialog::DOMOdal() functin after InitMOdalIndiect().
How do I make the dialog box visible?
Prithaa
|
|
|
|
|
|
Hello,
Thanks for your reply.You have been helpful always.
I have been to the above link before asking you the question and went through CDialogTemplate class but I don't think it will be of any use to me.
I do not have a dialog resource.
MyDialog is class derived from CDialog.
This is my code.
MyDialog dlg;
DLGTEMPLATE *d = new DLGTEMPLATE;
d->x = 10;//(short)m_Rect.left;
d->y = 10;//(short)m_Rect.top;
d->cx = 200;//(short)m_Rect.Width();
d->cy = 200;//(short)m_Rect.Height();
d->style = WS_CAPTION | WS_SYSMENU | WS_VISIBLE | DS_SETFONT;
d->cdit = 0;
int iRet = dlg.InitModalIndirect(d);
dlg.DoModal();
In the above code iRet = 1 when debugged but the dialog box is not seen.
Thanks
Prithaa
|
|
|
|
|
I think if you look at the documentation for the DLGTEMPLATE Structure[^], you'll see
you're missing other items following the structure.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
hi...
i am doin file drag and drop opertion. while dropping a file i need to display the paticular file image also in richtext box.
For example: i am dropping a word document file means,then i need to display the word doc file icon in richtext box).
is any one know how to do...or any regerence links....
ple reply me...
thanks
|
|
|
|
|
You might want to lookup SHGetFileInfo . Here's a snippet that fetches the icon associated with a file and renders it onto a DC.
SHFILEINFO fileInfo = { 0 };
DWORD dwStatus = SHGetFileInfo( _T( "bing.pdf" ), 0,
&fileInfo, sizeof( SHFILEINFO ),
SHGFI_ICON | SHGFI_LARGEICON );
dc.DrawIcon( 10, 10, fileInfo.hIcon );
|
|
|
|