|
I have the same problem, and I don't know what to do about it. Accessing the registry, that is. Are you using the OpenRegKeyEx or the function(I forgot its name)?
Baaf.
|
|
|
|
|
I'm using CRegKey...
After reading the article recommended in the second reply, I'm betting my problems is my frequent use of the
assert(someFunction() == someVal);
programming no-no. Hope that helps!
|
|
|
|
|
I'm using CRegKey...
After reading the article recommended in the second reply, I'm betting my problem is my frequent use of the
assert(someFunction() == someVal);
programming no-no. Hope that helps!
|
|
|
|
|
,
hai dear i am working e=with registry, my problem
1. i am able to registry key in debug mode where as in release mode it's not opening it's returning error code . if ur having suggestion kindly update me ASAP
anshu
|
|
|
|
|
ASSERT is ignored in Release versions so it doesn't matter if they're there or not.
Bret Faller
Odyssey Computing, Inc.
|
|
|
|
|
|
Good day,
Has anyone used CDynamicAccessor with OLEDB? If so, I need help inserting data into the recordset using SetData(...). I want to set the value for one column on the specific row. I am using CTable with CDynamicAccessor. I have all the properties needed (IRowsetUpdate/Change, etc.) but everytime I call SetData I get DB_E_ERRORSOCCURRED. Any examples, help is greatly appreciated. Thanks.
Bret Faller
Odyssey Computing, Inc.
|
|
|
|
|
|
I tried deriving a class and adding that support but still no go. I am using an ODBC driver because for some reason the Jet drivers don't support the options I need.
Bret Faller
Odyssey Computing, Inc.
|
|
|
|
|
I am using an ODBC driver because for some reason the Jet drivers don't support the options I need.
Maybe ODBC over Jet doesn't support these options either. Anyway, you need to reduce your problem to some simple case: can you SetData on simple table with 1 integer column? Are you sure you're calling SetStatus for each field in accessor?
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
It might not be the same problem but I ran into this error yesterday. It turned out I had an identity column in the column map. It would return this error when calling setdata.
|
|
|
|
|
Does anyone know how to use DotNet controls in a MFC app?
Thanks, Italo S Weiss
|
|
|
|
|
hi all,
I have a word object I placed with in place activation. whenever escape is pressed it closes. the messages seems to ignore my handlers.
anyone has an idea?
thanks for the help,
Omri
|
|
|
|
|
I wish to use ofstream::seekp() to point and set
there the new EOF, but...
I tried:
{
ofstream o("blah.txt", ios::in | ios::out);
o.seekp(-30L, ios::end);
//set the ptr 30 bytes back from EOF.
//I want to set (the new) EOF HERE!
}
10x.
|
|
|
|
|
I think you're better off telling us what you're trying to accomplish. I'm sure there's another way to solve the problem. Trying to set the EOF yourself is a losing proposition.
|
|
|
|
|
In another words, I wish to shorten the file, in 'n' bytes.
I wish to delete a stream of a known size and position,
from the end of the file.
Thanks again!
*** Bar Cochva _@_y ***
|
|
|
|
|
I'm coding in Borland C++ Builder 5...
I want to change what the executable name is when my project compiles.
Also I want to be able to have my program centered on screen when it's
compiled, so when people use it with different resolutions and what not, it's still starts in the center of the screen.
Any help would be much appreciated.
Thanks,
Aaron
|
|
|
|
|
First one is set in PRoject/Settings/Link, the second is CenterWindow();
Christian
#include "std_disclaimer.h"
The careful application of terror is also a form of communication.
Eagles may soar, but weasels don't get sucked into jet engines.
|
|
|
|
|
Perhaps i have a problem with my brain, but i would like to know if the a default constructor must do sthing. I explain what i mean.
In my application, i have created a class where of course there is a constructor, mine is a default constructor. I don't need to create an object which will be initialize to something, i just want to have some methods which do calculations..., so in my code .cpp, i put nothing between curly brace for the definition of the constructor. Is it good or not?
thanks in advance
gerald
|
|
|
|
|
if the ctor does nothing, then dont bother coding one, the compiler will do it for you.
|
|
|
|
|
Greetings!
I know for a fact that you can not call the SendMessage function from CDocument since it is not derived from CWnd. But is there any other way
to get around this?
In the ff. example I would like to use CDocument instead of CView:
--------------------------------------------------------------------
LRESULT CMainFrame::OnDialogDestroyed (WPARAM wParam, LPARAM lParam)
{
CView* pView = GetActiveView();
pView->SendMessage(WM_USER_DIALOG_DESTROYED, wParam, lParam);
return 0;
}
--------------------------------------------------------------------
Many thanks!
|
|
|
|
|
use the SDK version SendMessage(HWND , UINT, ...)
and use the handle for your frame window (CFrameWnd).
From there, when the message is received, route it to
the doc (call a document function, whatever).
|
|
|
|
|
I'm used to Borland, where you can just drop a tab control in the visual environment, then select each tab in turn and drop controls onto the tabs just like you do with a normal dialog. It doesn't seem possible to do this with VC++, or have I missed something? Can anyone point me in the direction of a simple guide to creating a tabbed dialog app?
Dave
Dave
|
|
|
|
|
I had used Borland once and the list of things that could not be done was too long.
Borland == Visual Basic for C++
Anyway, no you can't drop controls on the seperate tabs (at least that I'm aware of). You would have to place them in the dialog editor and then handle the change tab message to show or hide the appropriate controls.
|
|
|
|
|