|
I have a DISP_FUNCTION as below. the TBF parameter that needs to be filled is an enum value. How do I cater to an enum as a parameter in the DISP_FUNCTION.
DISP_FUNCTION(class, "method",method, VT_ERROR, VTS_I4 VTS_DISPATCH <tbf>)
|
|
|
|
|
I want to have a picture of type .bmp or .ico on my DialogBox. so how can i do that. Can anyone help me. Thanks in advance
Anil Jillella
|
|
|
|
|
On your dialog put picture frame left click than properties, select type (icom, bitmap)then select image (combo box offering you bitmaps or icons from res)!
Hope this was helpful!
|
|
|
|
|
thanks,i myself found the solution.
Anil Jillella
|
|
|
|
|
Add a static control on your dialog box using the resource editor, edit its properties, set its type to bitmap and specify the ID of the bitmap you want to use.
|
|
|
|
|
With a static control you also show jpg file.CStatic has a function
SetBitmap<code> that it gets a hbitmap you can use of CImage class for show jpg files on this control. <br />
<br />
<div class="ForumSig"><div style="padding: 0; margin: 0; background-color: rgba(170, 214, 255, 1); text-align: center; font-family: Arial; font-weight: bold; font-style: italic; font-size: 9pt"><br />
<div style="color: rgba(255, 255, 255, 1); width: 300px"><br />
<hr width="250" size="7">WhiteSky<hr width="220" size="7"></div></div></div>
|
|
|
|
|
AnyOne Give Demo Examples on Cfile
|
|
|
|
|
|
prefer ofstream to cfile. In both cases, try google.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Scroll up.
Thou will see a search box.
Enter "CFile" in the text box.
Press enter.
|
|
|
|
|
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
|
I am compile my project in VC++ 6.0. There is no error.After compile it shows:
Loaded 'ntdll.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found.
Loaded 'D:\VMC PROJECTS SOURCE\VMC RnD Projects\GScannerAppSuite\VMCGScannerAppSuite\GridPenManager.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\user32.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\gdi32.dll', no matching symbolic information found.
Loaded 'D:\VMC PROJECTS SOURCE\VMC RnD Projects\GScannerAppSuite\VMCGScannerAppSuite\ESCamLib.dll', no matching symbolic information found.
Loaded 'C:\WINDOWS\system32\winmm.dll', no matching symbolic information found.
The thread 0xBAC has exited with code 0 (0x0).
The program 'D:\VMC PROJECTS SOURCE\VMC RnD Projects\GScannerAppSuite\VMCGScannerAppSuite\VMCGScannerAppSuite.exe' has exited with code 0 (0x0).
But program do not Run or execute.The interesting thing is that I am creating a new dialog based project as a same name "VMCGScannerAppSuite" the same thing is happened. But other project is running in VC++ 6.0 well.
can anyone tell me plz what happened....
|
|
|
|
|
Well, your application seems to start since it loads some required DLLs.
Try putting a breakpoint in InitInstance() , step through the code and see what happens.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Nothing is happened. When I pressed F5 the previous message is shown in the
Output window.
|
|
|
|
|
What are the controls you are using on your dialog ? Please, list them completely. Are there any ActiveX control or such ?
If yes, did you call AfxEnableControlContainer() in your InitInstance ?
|
|
|
|
|
There is no ActiveX control.
yea I am calling AfxEnableControlContainer() in InitInstance();
|
|
|
|
|
Any custom controls ? If yes, check that the class name is correct.
|
|
|
|
|
There is no custom control.
Actually this project is running in other computer (WIN2000,XP).
But not mine.So there is no bugs in coding.
|
|
|
|
|
Did you use of CRichEditCtrl Class on your program?
|
|
|
|
|
No...CRichEditCtrl is used...
I have just create a new dialog based project named "VMCGScannerAppSuite".
Then just build and run the project...No control is used this project...
I am little bit worried about this type of problem. Some previous projects have the same problem which was okay some day before and some of them running well.
|
|
|
|
|
See this[^] thread does solve your problem?
|
|
|
|
|
Hi.
I have created a MDI with CFormview. I also have created a form in which I want to call from the menu. How do I call this form?
|
|
|
|
|
|
Hi.
Sorry if I didn't state the problem clearly. I have a similar problem.
I created MDI derived from CFormview. Now, I want to have a new view which I have managed to create by Insert -> Resource -> Dialog -> IDD_FORMVIEW. I have changed the ID to IDD_GRAPH.
MDI created 2 menus called IDR_MAINFRAME and IDR_CVTYPE. I have modified IDR_CVTYPE to create another menu entry called 'View'. Under 'View', there is a submenu called 'Graph'. When the user click 'Graph', I want a child window to open with the new view (IDD_GRAPH). The problem is what should I code for the new view (IDD_GRAPH) to open when 'Graph' is clicked?
|
|
|
|