|
There is a bug in Visual Studio 2003 which prevents you adding ATL OLEDB consumers to MFC projects. This previously worked in Visual Studio 2002.
The work around is to fool the ATL wizard into thinking it's not an MFC project
Change your CWinApp inherited class as follows
#ifdef _FAKED
class CG1App : public CObject
#else
class CG1App : public CWinApp
#endif
The wizard now works and the project compiles correctly.
NB. you will still need to add the required header
atldbcli.h
|
|
|
|
|
Hi
does ne1 know how to convert a CString to an int
eg CString = "5";
thanks
si
|
|
|
|
|
|
hi..
you can do it,like this;
CSting str;
str="5132";
int i=atoi(str); Good Work...
|
|
|
|
|
|
i created a treelist of items but wish to display the names of the items selected (on single click) in another list box one by one. How to create such a function?
|
|
|
|
|
Please map the TVN_SELCHANGED function then Get the Current selected item by calling the
HTREEITEM hTreeItem ;
CString StrSelectedText ;
hTreeItem = TreeCtrl.GetCurrentSelectedItem ();
StrSelectedText = TreeCtrl.GetItemText(hTreeItem);
Now Set this text in the Edit Ctrl by calling the
Edt_Ctrl.SetWindowText();
Please set the appropriate parameter.
Thanx
TAKE CARE
|
|
|
|
|
I am wondering if i add a button in an SDI, then can i create another view window when button is pressed?
|
|
|
|
|
I need to launch another console program in my application. But I don't want that the console programs shows the console window.
Any way?
Thanks
|
|
|
|
|
Have you looked at CreateProcess() ?
|
|
|
|
|
You can use ShellExecute or ShellExecuteEx and set the nShowCmd parameter to SW_HIDE or look at the CreateProcess function.
Lan
|
|
|
|
|
Check out the STARTUPINFO structure that is passed to CreateProcess(). The STARTF_USESHOWWINDOW bit in the dwFlags element may do the trick.
Brad
|
|
|
|
|
Thank you very much.... CreateProcess() is the solution.
|
|
|
|
|
I have a problem with updating text in a textbox created with Modeless Dialog Box. Anyone has any solutions?
The problem is the text created is fixed and it shows up. when i try to change the text after 5 secs,using a WM_TIMER to update the textbox, it did not update.
|
|
|
|
|
|
i use the CreateWindow to create The Dialog Box
In The Form, i preset the values in the textbox such as "Testing"
on the InitDialog msg, i change the textbox msg to "Test Completed using SetDlgItemText, then i refresh the window using UpdateWindow.
|
|
|
|
|
try calling Updatedata with aprropriate parameters.
Thanx
TAKE CARE
|
|
|
|
|
I try to call the SetBkColor method of the CProgressCtrl and get the following error:
<br />
Compiling...<br />
FlashDialog.cpp<br />
c:\viewstore\beekb_snapview\testtool\ttmod_atapi\src\flashdialog.cpp(129) : error C2039: 'SetBkColor' : is not a member of 'CProgressCtrl'<br />
c:\program files\microsoft visual studio\vc98\mfc\include\afxcmn.h(477) : see declaration of 'CProgressCtrl'<br />
Error executing cl.exe.<br />
The CProgressCtrl does not have a SetBkColor Method? MSDN clearly specifies it does!
|
|
|
|
|
You need to look at the documentation that came with VC6.
SetBkColor is a new method in MFC 7.x.
To achieve the same goal, use SendMessage to send the progress bar a PBM_SETBKCOLOR message.
|
|
|
|
|
Hello, Sir:
Now i have some trouble with the FPU. I need test CPU FPU function, it include "FPU Exception Test", "FPU Control Register Test", "FPU Tag word Register Test" and "FPU Calculation Test". And I don't how can test those really. I have studyed IA-32 Intel® Architecture Software Developer’s Manual, and knew some about FPU. Do you know how to "test" such FPU fuction. Do you have a example about those, or give me some advice? I am helpless, waiting...
|
|
|
|
|
How best create CHM visually ?
-by which program?
Does it keeps DHTML ?
|
|
|
|
|
CHM files contain HTML that has been compiled and linked through a table of contents and optional index. You use the Microsoft HTML Help Workshop to do this. Any good HTML editor can be used to create the source files.
Some of the commerical help authoring tools out there may provide more sophisticated design and editting features, but in theory you can get by with Notepad.
Since the IE rendering engine is used, I think any DHTML is also valid. The Platform SDK help uses DHTML, for example.
Brad
|
|
|
|
|
I want create CHM from existing internet files -that was downloaded by IE,
by seconds.
That is- run program - press include file- press complile- result received.
VISUAL CHM is a sample,
but do not works with DHTML.
|
|
|
|
|
Just curious as to how one could create the equivalent of .Net Attributes as used in C# in C++ in a non .Net environment. Any links or pseudo code would be great.
Thanks
|
|
|
|
|
Some programs very dislike DHTML,
for sample Viasual CHM4.0,
(chm creator)
they need to eliminate all DHTML from file to work correctlu with them.
Is there utilities that can remove DHTML from file ?
Thanks.
|
|
|
|