|
"...(ADO.NET is even better)"
In what regards (or is that too open ended a question)?
|
|
|
|
|
I guess it depends on what you're trying to do. Lately I have been working with XML out of databases and find that ADO.NET has much more functionality in that area. If your app is not using the .Net platform then it will probably be too much overhead to include with the distribution.
|
|
|
|
|
Don't have much experience with XML but I thought XML is more of a data transport mechanism as opposed to a data storage mechanism.
Actually, what I am doing (for a variety of reasons) is changing an application from using the Microsoft serialization scheme to a relational database scheme. The app object model actually lends itself nicely to a relational database. The database (50 or more .dat files or 1 .mdb) is fairly stable - ie nothing changes - once a site is calibrated and up and running. The creation and calibration of a site is another story. The admin portion of the database is trivial - even for Access. There is however a large portion of numerical (calibration) data that I store as a blob.
The app was started in VC6 and I am converting to VC7. It will run on Win2k and XP machines (and maybe NT at some old sites).
I don't know if that's too much info...or even makes sense... or is relavent
John
|
|
|
|
|
After doing a little research on MSDN it does seem that MSDE and ADO are the way to go...Downloading MSDE now.
I may have further questions...<grin>
Thanks for the response
John
|
|
|
|
|
Hi all!
I'm trying to do a Visual C++ application. I have the main file parlante.cpp, and it uses classes from imevo.cpp
When I compile each file separately, I get no errors, but when I build the application I get lots of unresolved external symbol in imevo.obj when linking. Which could be the reason for this?
What should I submit here so you could help me with this if what I've said it's no enough?
Thank you in advance!
|
|
|
|
|
LNK2001 can be caused by a number of reasons. See here for more.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
Add the files to your project.
"When death smiles at you, only thing you can do is smile back at it" - Russel Crowe (Gladiator)
|
|
|
|
|
When running my app on a Novel Network it generates this error: "Error 0203" saying 'Error in saving message'
This is the first time that I've run into this error and I don't know what it means. My app is written in Vvisual C++.
Can you help?
|
|
|
|
|
Ok, do you have code that is saving messages on a remote machine?
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
Hello,
I'm changing code on an existing project. I wanted to use the CCritical class, but I get an error when I compile with the Afxmt.h header. The compiler says not to use the windows.h header. I tried to comment out references to windows.h, but it did not work. I tried to set the project settings to MFC, but it did not work either. Any help??? Thanks.
|
|
|
|
|
Anonymous wrote:
I wanted to use the CCritical class...
What class is this? Did you mean CCriticalSection ?
Anonymous wrote:
The compiler says not to use the windows.h header
Of course. It has already been included by AFX/MFC, hence the preprocessor's redundancy message.
Anonymous wrote:
I tried to comment out references to windows.h, but it did not work
Meaning what?
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
The project's setting was non-MFC and they used windows.h as a header to use certain functionality. I tried to comment them out and only use afxmt.h. Yes, I wanted to use the CCristicalSection.
|
|
|
|
|
Ok, but what steps did you take to retrofit the project to use MFC? You might be better served in creating an MFC project from scratch, and then comparing the files/settings between the two.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
I tried LogonUser and CreateProcessAsUser to logon to my domain account(from my account) and run a program. What happens is that I get an error 1384 or something "a privilege is missing". Is there anyone that has a working snippet to run "notepad" or something? Could there be problems with the domain login?
|
|
|
|
|
ERROR_TOO_MANY_CONTEXT_IDS (1384): During a logon attempt, the user's security context accumulated too many security IDs.
Does the user belong to too many groups or aliases?
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
No it's not member of many groups and it doesn't have aliases.
|
|
|
|
|
Unless this is on XP or 2003, then the account running the app (not your domain account) needs the TCB privilege (act as part of OS). This isn't something you'd get the average administrator to grant lightly.
Steve S
|
|
|
|
|
This is on an XP machine. What I tried to do was to logon to my domain account from my domain account. Maybe this is making the problem? Is there difference between local and domain accounts here?
|
|
|
|
|
Hi!
I've seen in some code examples this word in head of functions, but I don't know what's its meaning... Any idea?
Thank you
|
|
|
|
|
It's a macro, that expands to HRESULT __stdcall . HRESULT is the standard return value of COM methods and __stdcall specifies calling convention (for details see MSDN).
Robert-Antonio
"I launched Norton Commander and saw, drive C: on the left, drive C: on the right...Damn, why I need two drives C:??? So I formatted one..."
|
|
|
|
|
Thank you
|
|
|
|
|
Hi,
I am trying to get the exact character widths (and thus position/placement) of Arabic text which I am writing to the screen.
I have used GetCharacterPlacementW. This returns the Caret position, corresponding to the cursor position between the characters.
For English text, this correctly gives the exact position.
For Arabic, this makes a good attempt at getting the position. However, in some parts of the text, the character positions become quite inaccurate.
Screen images can be seen at:
http://www.codeguru.com/forum/showthread.php?s=&threadid=283418
Apart from the GDI32.dll GetCharacterPlacementW, is there another more accurate technology?
Does anyone have any other suggestions?
Many thanks.
|
|
|
|
|
Hi all,
Wondering if anyone knows why I'm getting this error when i try to build certain DirectShow samples from the DX9SDK. Here's what i get compiling a debug
------ Build started: Project: PlayWnd, Configuration: Debug Win32 ------
Linking...
playwnd.obj : error LNK2019: unresolved external symbol "long __stdcall ATL::AtlWinModuleInit(struct ATL::_ATL_WIN_MODULE70 *)" (?AtlWinModuleInit@ATL@@YGJPAU_ATL_WIN_MODULE70@1@@Z) referenced in function "public: __thiscall ATL::CAtlWinModule::CAtlWinModule(void)" (??0CAtlWinModule@ATL@@QAE@XZ)
playwnd.obj : error LNK2001: unresolved external symbol "class ATL::CAtlBaseModule ATL::_AtlBaseModule" (?_AtlBaseModule@ATL@@3VCAtlBaseModule@1@A)
.\Debug/PlayWnd.exe : fatal error LNK1120: 2 unresolved externals
There are certain samples (with names ending in ASF) that require the Windows Media SDK and a certificate. But PlayWnd isn't one of them. (PlayWndASF is.)
I'm working on a full screen video player, the other relevant samples that play video also give me the same error. "Windowless" for example.
I know it's something stupid...
|
|
|
|
|
How can I messure the memory consumed by a function ?
I use APIs to allocate GDI objects (bitmaps - pens -etc...)
and I want to compare several approaches in my Application so I want to know how much memory is consumed
any links ideas are appreciated.
|
|
|
|
|
Quite honestly, you are probably wasting your time. In any case, read this article just to be sure.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|