|
buy a banner like everyone else, jerk.
------------------------------
Smaller Animals Software, Inc.
http://www.smalleranimals.com
|
|
|
|
|
You crack me up, Chris! I'm so sick of that UCanCode crap!
|
|
|
|
|
Hi,
How is possible to create a Bitmap with different bits per pixel.
I've tryed with CreateDIBSection but when I select the Bitmap into the DC and then draw into it, nothing is happened.
Is there any example of this?
10x
|
|
|
|
|
i want to get a recordset from server database using ADO command which calls stored procedure.
the subroutine source code is following...
with a global connection and a global recordset pointer,
////////////////////////
try
{
_CommandPtr pCommand ;
HRESULT hr = pCommand.CreateInstance( __uuidof(Command) );
if( FAILED(hr) ) return FALSE;
pCommand->ActiveConnection = GetConnection();
pCommand->CommandText = proc; // stored procedure parameter : @roomNo smallint
pCommand->CommandType = adCmdStoredProc;
pRecordset = pCommand->Execute( NULL, argv, adCmdStoredProc );
// pRecordset->Open((IDispatch *) pCommand, argv, adOpenStatic,adLockOptimistic, CmdStoredProc);
}
catch(...)
/////////////////////////
when returns from the above subroutine, the global recordset becomes closed.
so, can not get a record by using pRecordset->GetCollect(0L).
why this occurs ????
somebody help me.....
thanks in advance.
|
|
|
|
|
Are you sure your Execute is working ?
try adding a
catch(_com_error e)
and see if it catch these com errors, If it does then see the error description
|
|
|
|
|
I have a CFile member variable who seems angry with me because doesn't do what I want.
Here's the code
in MyClass.h:
public:
CFile* myFile;
in MyClass.cpp:
CMyClass::CMyClass()
{
myFile = new CFile;
}
CMyClass::~CMyClass()
{
delete myFile;
}
//My class is derived from CPropertyPage
BOOL CMyClass::OnInitDialog()
{
if (myFile->Open("some.file", CFile::modeRead))
{
//Dosomecode
myFile->Close();
}
}
And I get:
Debug Assertion Failed!
// More things
Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)
// More things
Since I'm learning C++ and I don't understand what is happening, I need somebody to help me and show that stupid file who is the programmer and not to crash again.
Thanks in advance,
|
|
|
|
|
The assertion happens when you delete right?
(2b || !2b)
|
|
|
|
|
Yes, I think so.
The application opens a property page and it crashes when I close it, but if I debug it it goes to HandleMap::DeleteTemp or something like that.
|
|
|
|
|
I think you should delete the file pointer not in the window destructor but add an event OnClose and then delete the pointer there, if it doesn't help than u can send me your project to pudaoman@hotmail.com and i'll try to hel you.
|
|
|
|
|
Hallo out there,
I have a little problem. I want to write a programm in MFC which opens an IE and give him some attributes like open in fullscreen and a start page. I haven't found anything in the msdn about this possibility so i hope that you can help me. Perhaps there are other possibilities to menage this problem.
sleater
|
|
|
|
|
Hello, the codegurus around the world.;)
We can open IE in our program by ShellExecute, WinExec, or CreateProcess.
IE might keep the start page URL and full screen info in the registry.
Or, the full screen status may be made by some command line argument.
Have a nice day!
-Masaaki Onishi-
|
|
|
|
|
or you can just send F11 key to the IE in order to make it full-screen
use keyb_event (or sth like that, i am not sure about it) to send the keystrokes to IE
Mustafa Demirhan
|
|
|
|
|
I have a program that maintains a list of files. The operator is allowed to open these files which I do by calling ShellExecute(). What I would like to know is how to tell if the program started by ShellExecute() is still running when my program terminates. Is this possible?
Thanks for any information you can provide.
Steve.
|
|
|
|
|
Try using ShellExecuteEx instead and collect the hProcess member of the returned SHELLEXECUTEINFO structure.
What to do with the hProccess is another story, maybe someone else can help?
Alternatevly use CreateProcess, which gives more control.
(2b || !2b)
|
|
|
|
|
Hey. use ShellExecuteEx api and in it's parameter structure check the hProcess data member after u launch your process, it should contain a handle to your process, after that you can do some stuff with the handle ussing api, depending on what you want.
|
|
|
|
|
Hi,
I have an application which contains a listcontrol in report view. When the user is viewing the data in the list, more data can get inserted into the list in the background. This would cause the list control to scroll. This is nuisance from the user's point of view, because he cannot see what he wants as the list gets scrolled frequently. Now, I want to provide an option through which the user can freeze the view that he is looking at. The list control should then just update the scrollbars (indicating that more data is being added) only. Can someone please help me in acheiving this?
Krishnan
|
|
|
|
|
Try experimenting with SetRedraw()
(2b || !2b)
|
|
|
|
|
use InsertItem(&Item) where item is a LVITEM structure and has stateMask = 0
this does exactly what you want, it inserts the new item without focusing on it.
ORi.
|
|
|
|
|
Hi,
I tried your solution. But, it does not work when the items are being added in the beginning.
|
|
|
|
|
Two questions:
I created a (xsd) schema (one global elements and several subs.)
Using MSXML4 Beta2 (for the xsd) I added the schema to the cache on a new blank DOM.
When I try to add elements to the new DOM object, it doesn't appear to reference the type object so that when I ask for its typed value (nodeTypedValue) it comes back with a string not the type I gave it in the schema.
Anyone have any experience with this, and can tell me what I shoud have done?
Where do you guys put your schemas? Resource files?
Thanks in advance.
C++/C# Student.
Wither Thee VB.Net.
|
|
|
|
|
Hi,
I am using a MFC SDI, for simple OLE embedding.
I get A MSWORD Application object, and call SetDisplayScrollBar(true). The scroll bars temporarily appear, before repainting kills them.
Can anyone offer any advice? Difficult to know how to try and resolve this one!
Cheers
Richard
|
|
|
|
|
Its when a call is made to my ole container COleClientItem::SetItemRects. Which occurs when i do a resize.
Any help at all, even if its just a stab in the dark, would be greatly appreciated.
|
|
|
|
|
I'm building an FTP client using sockets and in a non-MFC project. The problem I'm having is that I can never accept a data connection from the server. I can create a command connection and execute commands. when doing a LIST, to receive file list I'm creating a listening socket, calling bind on the listening port and when I receive response code 150( setting up data connection..) I'm trying to accept() the connection. Yet this never works for me. In blocking mode, I never get the control back and using async sockets, I just never get the connection...what am I doing wrong? Any code will be helpful...
Also has anyone used Xitami webserver 4.2b? it never seems to send out 3xx code after passing username, while authorizing...why?
TIA.
I'm an alien, I'm an alien
it's a beautiful life....
Bush
|
|
|
|
|
If you are using an Active FTP connection, try Passive.
|
|
|
|
|
Is it possible to reliably detect from the WIN32 level the current parallel port settings (and whether one is available) including mode (ECP, EPP, etc.)? If so, does anyone know the best way to go about this?
Thanks!
|
|
|
|