|
mikobi wrote:
hr = session.Open(db);
if (FAILED(hr))
return hr;
Shouldn't you be looking at CDaoException or CDBException to see why the Open() call failed?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Hey,
can you tell me why SetButtonInfo has no effect in a CFormView. I first created a Dialog (CDialog)with a embedded Toolbar. In this case I used SetButtonInfo to enable/disable ToolbarButtons. Now I created a Dialog derived from CFormView. When I now use SetButtonInfo the button "flickers" shotly but nothing else....
Do I have to create a
ON_UPDATE_COMMAND_UI function and a status-variable for each ToolBarButton in my CFormView class, or is there an easier way?
Thank you all....
|
|
|
|
|
AnTri wrote:
Do I have to create a
ON_UPDATE_COMMAND_UI function and a status-variable for each ToolBarButton in my CFormView class, or is there an easier way?
Yes and No. You're better off to use ON_UPDATE_COMMAND_UI, and compared to that method, all other possible solutions are painfully difficult.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Hello.
please, help me with this problem.
the program is to parse HTTP messages. From the RFC 2616 (HTTP/1.1):
"The HEAD method is identical to GET except that the server MUST NOT
return a message-body in the response. The metainformation contained
in the HTTP headers in response to a HEAD request SHOULD be identical
to the information sent in response to a GET request."
It means the response will inlude the Content-Length header but will have no body.
How to differ response on HEAD method and on GET?
While the connection is persistent the client can send a lot of HEAD requests one by one or in another order. The headers of these (GET and HEAD) responses are identical,but in case of HEAD the parser must not parse message-body.
How to differ them?
Thank you.
|
|
|
|
|
How does one convert from CComBSTR to std::string? With std::wstring it is LPCWSTR(CComBSTR), but for std::string I get a lot of error messages
I am the handsome one in the crowd.
|
|
|
|
|
I suspect that these 'errors' have a lot to do with the differences in the character types (ANSI and Wide character types).
See this[^] MSDN article. This may help you find your solution.
I Dream of Absolute Zero
|
|
|
|
|
Is it possible in an MFC/MDI application to prevent the last window from being closed e.g. if someone accidentally clicks the 'X' on the lat window?
TIA
|
|
|
|
|
yes you can.
just overloads the WM_CLOSE event (OnClose() event handler)
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Thanks for the reply.
Is it the child frame OnClose() that I should overload?
TIA
|
|
|
|
|
it is the OnClose of the Dialog you want to prevent from closing... (the child if it is the child...)
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Just overload the OnCancel() event hadler as toxcct told you
and write the following inside
void CYourDlg::OnBnClickedCancel()
{
if (MessageBox("Are you sure to exit ?","msgboxtitle",MB_YESNO|MB_ICONQUESTION) ==IDYES ) OnCancel();
}
m0n0
|
|
|
|
|
When I rotate my bitmap to a degree which is not a multiple of 90 the size of the image increases to accommodate the new rotated bitmap. E.g. 45 degrees
My problem arises, when I rotate an image of resolution 768*576 the new size increases drastically. Will it be logical to rotate and then resize the bitmap back to the original size for every rotation?
I have also tried using XForm, it works great but it does not allow me to save the rotation. Is there an alternative. If not, where do I find an algorithm to resize a
24- Bit Bitmap.
|
|
|
|
|
Hello!
I'm testing and writing my documentation.
I do not know how to calculate minimum configuration for the program.
Thanks
|
|
|
|
|
Is it for a game or application?
When testing for a game, check which configuration is needed to play the game at minimum resolution (800 x 600 or something like that) at least at 25 fps.
See how much memory (ram) your application is using. If it is more than 16, users should have at least 32 (because other applications are using ram too).
Geert
Want to spread the newest version of your software automatically? Use Updater!
Visit my website: http://geert.yoki.org
|
|
|
|
|
How do I create a tlb-file using VS 6.0 / 2003.
_____________________________
...and justice for all
APe
|
|
|
|
|
|
toxcct wrote:
what do tbl files contain ?
it's not tbl,it's tlb,it's contain Interface decalaration in Binary Format, Understand only By COM Friendly Langauge!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
My goal is to create a dll that exposes some functions (from my classes).
This newly created dll is then going to be consumed by another application.
Don't know if a tlb-file is the right thing to do, but i've earlier imported oters tlb-files but never created my own one...
_____________________________
...and justice for all
APe
|
|
|
|
|
d00_ape wrote:
How do I create a tlb-file using VS 6.0 / 2003.
Run MIDL.exe on .idl File
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Ok, and how is the .idl file created.
If you have seen an article in this subject i'm pleased. I've searched but no success...
_____________________________
...and justice for all
APe
|
|
|
|
|
|
I have a .dll and .lib that are created by Borland CBuilder. And I want to use these two files in Visual C++. However, directly adding these files into my VC++ project generates error once I call any functions in the .dll.
What should I do so that I can re-use the Borland CBuilder .dll and .lib files in VC++?
|
|
|
|
|
Hi,
I am writing a software which generates a unique machine id for a machine based on hardware/software components.
Currently i am using the following parameters - mac address, windows serial key, c: volume info and cpu id.
I am in need of some more paramters like HDD id, Motherboard ID, CDROM-Drive id.
Is there any solution which possibly doesn't use MFC or read the registry ?
Adithya
|
|
|
|
|
|
Why not just use CoCreateGuid() instead?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|