|
Thanks you very much. now recordCount is working very good.
but, do you know if adUseClient is slower than adUseServer ?
el hombre es libre cada vez que elige y eso es lo que lo hace libre
|
|
|
|
|
here's what MSDN says:
RecordCount Property
The cursor type of the Recordset object affects whether the number of records can be determined. The RecordCount property will return -1 for a forward-only cursor; the actual count for a static or keyset cursor; and either -1 or the actual count for a dynamic cursor, depending on the data source.
|
|
|
|
|
If you're going through all the records anyway then asUseClient won't be any slower.
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
Mhh... Yes perhaps, but explain your problem, it would be easier for us !
|
|
|
|
|
The target DLL specified in m_strName must be an absolute path (ex. : c:\bla.dll) or in one of the directories listed in your PATH environment variable.
|
|
|
|
|
You get this message at startup. But why did you post that piece of code? It tells nothing about your problem.
Could you be more specific, and also put the entire error string from Windows?
|
|
|
|
|
Ok, next question: what is name.dll and where is it?
|
|
|
|
|
Ok, let's see.....
The DLL is loaded run-time with your call to LoadLibrary . If you put the DLL away (removing it from System32 for instance), the program stops complaining it cannot find the DLL. Am I right??
If I am right, then when LoadLibrary fails, you return FALSE . But to who do you return FALSE ?.
|
|
|
|
|
so, what exactly is your problem then? What are you trying to achieve?
|
|
|
|
|
I want to Create a Frame/view/doc structure On a ActiveX Control,but It will be Found Memory leak! And I Found that the reasons is :
CDocManager* CDocManager::pStaticDocManager;
CPtrList* CDocManager::pStaticList;
How Can I avoid Memroy leak?
the Following is My Code :
BOOL Create()
{
if( m_pFrameWnd )
{
if( IsWindow(m_pFrameWnd->m_hWnd) ) return TRUE;
}
CSingleDocTemplate * pDocTemplate;
pDocTemplate = new CSingleDocTemplate(IDR_MAPTYPE,
RUNTIME_CLASS(CMapDoc),
RUNTIME_CLASS(CMapFrame),
RUNTIME_CLASS(CMapView));
// pDocTemplate in destructor function delete this!
CMapDoc * pDoc = new CMapDoc;// in destructor function delete this!
CCreateContext Context;
Context.m_pCurrentDoc = pDoc;
Context.m_pNewDocTemplate = pDocTemplate;
Context.m_pNewViewClass = RUNTIME_CLASS(CMapView);
Context.m_pLastView = NULL;
Context.m_pCurrentFrame = NULL;
CMapFrame * pFrameWnd = new CMapFrame;// in destructor function delete this!
m_pDoc = pDoc;
m_pFrameWnd = pFrameWnd;
m_pDocTemplate = pDocTemplate;
CRect rcMap;
GetClientRect(&rcMap);
BOOL ret = m_pFrameWnd->Create(AfxRegisterWndClass(CS_DBLCLKS), NULL, WS_CHILD|WS_VISIBLE, rcMap,this,NULL,&Context);
m_pFrameWnd->ShowWindow(SW_SHOW);
return ret;
}
ZHANGYIFEI
|
|
|
|
|
I'm not sure if this qualifies as a beginner's debugging question, but...
One of our apps (written in VC6) crashes on a few of a client's machines, and we can't reproduce the crash in our dev environment. He's getting a message such as the one in the subject line. The first address ("the instruction at [xxx]") always comes back the same on all his machines.
What are the basic steps I need to take in order to map this address back to a line of source code?
|
|
|
|
|
|
Excellent--this is *exactly* what I was after.
(as an aside, I've been meaning--for years--to look into how to do this)
|
|
|
|
|
:(Is there any way I can call the member function of a user defined "sniff" class when calling it from the function which is not the member of the "sniff" class.
The error that occurs when call is made
error C2352: 'sniff::show' : illegal call of non-static member function
Reply me soon
|
|
|
|
|
|
In many dialogs you see a separator between 2 text blocks (looks like 1 line of a group box). How do you draw such a line?
|
|
|
|
|
create a "picture" object that's only one line high. (it's the icon that looks like it has a picture on it)
-c
Image tools: ThumbNailer, Bobber, TIFFAssembler
|
|
|
|
|
thanx! So simple, still I could not find t.
|
|
|
|
|
thanx! So simple, still I could not find it.
|
|
|
|
|
It's not enough,
you need to enable the sunken style as well.
|
|
|
|
|
|
I like using them this way
|
|
|
|
|
Hi,
I want to use the AciveX component 'MScomm32.ocx' in my Visual C++ project. The registration of mscomm32.ocx seems to be successful with the command 'rundll32 c:\winnt\system32\mscomm32.ocx, DllRegisterServer', but when I try to insert the ActiveX Component 'Microsoft Communications Control' in the project I get the error message that I have no license. It's obviously because I dont't have VB 6.0 installed on my machine. But is there maybe another activex component available which is able to 'talk' to the serial ports including all the features of mscomm32? Or does somewhere a 'free library exist?
Thanks a lot
Vassili
|
|
|
|
|
I know that there is somwhere answer on my question but I couldn't find it by now
I want to open a html page in the default browser.
the code i use opens it using Windows explorer
ShellExecute (NULL, "open", "iexplore.exe" , pMyReg->Install_Dir+"\\Stats\\stat.html", NULL, SW_SHOW);
How to obtain the default browser, or maybe there is another way for opening html page in the new browser window.
|
|
|
|
|
I would just call:
ShellExecute(NULL, "open", pMyReg->Install_Dir+"\\Stats\\stat.html", NULL, NULL, SW_SHOW);
This would start the default browser and open the file stat.html.
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|