I've implemented a wizard using the CPropertySheet and CPropertyPage classes.
When i'm in a particular page of the wizard, when i click the "Cancel" button or press ESC or close the page by clicking on the "X" in the right top corner, the CANCEL message gets fired and control comes to the OnCancel command handler. At this point the PSN_WIZFINISH notification is not sent.
I am relying upon the short circuit test of string as a pointer to be NON-NULL and the test failing, otherwise I might try to dereference memory I don't own! (Dereferencing a memory address at zero which will lead to the fatal 'access violation' exception on Windows)
Be aware that if you define your own overloaded operators &&, || etc. that they will NOT short-circuit!
"To claim that computer games influence children is ridiculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
3. 'ADO Command' parameters created from the passed input and output arrays and a stored procedure is called.
4. Stored procedure copies input array values to output array.
5. when trying to copy value from the command object back to the output array I am facing problem.
I have to add an ability to get "screenshots" of fullscreen dos apps to some opensource vnc (UltraVNC, TightVNC or something other...) in order to make possible to programm our samsung office phonestations remotely (7 ones in the different towns). Their program (pcmmc80) is run in fullscreen graphical mode and somewhy doesn't run in VMWare and other VirtualPSs =(
Iam calling a fortran function from c++ code.Actually it enters into the fortran code , but it not passes the correct argument values.instaed of passing 1 & 8 valeu it passes the 0 value to the fortran functions.
Please help me to solve this problem.Below is my code.
fortarn function (DLL:Dynamic linked linrary)
SUBROUTINE MATH(INTEGER A, INTEGER B)
!DEC$ ATTRIBUTES DLLEXPORT ::MATH
PRINT*, "Oops!!! I am ForTran manager..."
INTEGER SUM = A+B
PRINT*, "after sum in fortarnlangauge"
END SUBROUTINE MATH
extern "C" __declspec(dllimport)
int __stdcall MATH(int a , int b );
cout<<"iam checkimg the mixed langauage programming"<
I am quite new here, and actually no so old to C/C++ either.
Has for my problem:
I've been trying to build an OCX wrapper for 3 DLLs. The wrapper itself will also provide a bit of extra functionality of it's own, but
it is basically a wrapper.
So far no big deal. Actually it's even working without any problems. The problem, has I see it, is more of an aestecthics nature than anything else.
You see, although I profit from this by geting to keep and use the DLLs, I'm doing this for a friend and therefore it's suposed to be done a certain way. Which of course is exactly why he askaed for it in the first place, because he doesn't have the time nor the inclination to look into it himself, and also because he has never written a COM or OCX before.
The issue itself has to do with how you access the functionality of each of the DLLs. I am certain everyone here has at least once used the TreeView control. This control has a Nodes colection which can be used to perform certains task on all of the nodes, return a node count, or access an individual node. Now in my case I don't have sutch a collection, what I do have are methods, and some properties that come with the wrapper and one of the reasons for wrappers existance. But I do want them accessed like the Nodes property, meaning I need to implement one Property for each DLL, which will be used to expose that particular DLL functions and properties.
I've build the classes, no problem there. They all have Automation support. Properties and methods are all in place. So far no problem.
Now if this was a COM I wouldn't be asking the next two questions. I know it's probably something I should know, but the truth is I don't.
First : Since I am using Automation on my Wrapper Classes they actually become available for instantiation, which I don't want. So first question is, how do I stop this ?
Second : How do I implement my properties ? In a COM this is kind of easy, just a part of the Dispatch coding. However every attempt of doing it in the sameway has resulted in loss of Wizard assistance (not really a problem), lots of compiler warnings, and a fare number of crashes. So if anyone know how I can implement this I'd apreciate it, preferably with a pointer to some sample code, has I learn a lot faster that way. Just to remove any doubts, what I am trying to do is create 3 properties, one for each DLL, that will then be used to expose the properties and methods provided by that DLL. This would be done in the form:
I am developing an MDI application with a Tree View within the MainFrame Window and all MDI Child windows in the right side (within the MainFrame Window).
For each new node added to the tree view , an MDI child window should be created .Thus the GUI represents an Explorer style setup with nodes in the tree view representing the individual child windows..Can anyone help me in this regard.
Capture mouse when it is in your window.
Process WM_MOUSEMOVE notificaiton messages.
Decode lParam (already in client coordinates)
Update text in ToolTip window
Move your ToolTip window to desired location
I tried the below line to make my dialog start at a certain position, with certain size, and prevent the user from moving it afterwards. SetWindowPos(&this->wndTopMost,StartXPos,StartYPos,DlgWidth,DlgHeight,SWP_NOSENDCHANGING|SWP_NOZORDER|SWP_SHOWWINDOW);
There is no problem with the start position and the size, but I can move it. Also there is some problem with CClientDC::LineTo() function. It sometimes draws after SetWindowPos is called, and sometimes not.
I also want to write a function to enable moving again.
i am encountering the following problem when making a dll in VC++ which contains functions using apache API.I have added the libraries available with apache installation to the input lib's.it is giving error in linking.
testfindna.obj : error LNK2001: unresolved external symbol _ap_log_error
testfindna.obj : error LNK2001: unresolved external symbol _ap_rwrite@12
testfindna.obj : error LNK2001: unresolved external symbol _ap_send_http_header@4
testfindna.obj : error LNK2001: unresolved external symbol _ap_set_content_length@8
testfindna.obj : error LNK2001: unresolved external symbol _ap_reset_timeout@4
testfindna.obj : error LNK2001: unresolved external symbol _ap_get_client_block@12
testfindna.obj : error LNK2001: unresolved external symbol _ap_hard_timeout@8
testfindna.obj : error LNK2001: unresolved external symbol _ap_should_client_block@4
testfindna.obj : error LNK2001: unresolved external symbol _ap_setup_client_block@8
Debug/testfindna.dll : fatal error LNK1120: 9 unresolved externals
Error executing link.exe.
I am working in VC++ for the first time.I suppose adding the lib's to project settings->Links->input lib's and setting the path of additional lib's would be enough.i have added the provided lib's over there and still it is not working.if i have to do anything else please help me.
actually they have provided some '.so' files with the installation and these '.so's does contain the functions.but i don't have any idea as to if these can be used in windows or how to use it
Last Visit: 13-Aug-20 11:26 Last Update: 13-Aug-20 11:26