|
1.Logically it's better to separate them based on tasks.
2.the OS manges this for you .. it loads the DLL and unloads it when no application needs it.
3.why don't try Visual source safe ? (Even if I don't like it myself )
|
|
|
|
|
I have in mind to write an application that I'd eventually like to distribute. It is essentially a work out and diet data tracker. I know that there's dozens of these out there, but mine will be the best one yet (heh, heh...).
Ok that notwithstanding ... it seems obvious to me that the best way to store the data is in a database. However ... once I've created the application, how do I go about distributing it without requiring that the user have MS Access, or some other database software installed.
Is there some kind of lightweight solution I can use that I can access using ODBC and distribute with my application? Is it possible to just wrap up the necessary Access .dll's and distribute those with my app? (Licensing issues aside)
Thanks in advance for any advice.
|
|
|
|
|
The Jet database engine (which is the guts of Access) is free to distribute (in fact it's preinstalled on XP - possibly 2000 as well). Alternatively you could go for something like MySQL.
Dave
http://www.cloudsofheaven.org
|
|
|
|
|
For a MS Access database you will need the Jet engine and as Dave mentioned in his post, Windows XP and 2000 already come with it. However for the other Windows versions you need to install MDAC. Go to this website to read more.
http://msdn.microsoft.com/library/default.asp?url=/downloads/list/dataaccess.asp
Keep something in mind though, because I learned this the hard way. If you write your program using MDAC 2.7 (ADO 2.7) then your program won't run with earlier versions of MDAC. I really don't know why and I was never able to get an answer. On the other hand MDAC 2.7 cannot be installed on windows 95, but it will work on Windows 98 and all the other later windows versions, if you have at least IE 4.0.1 with SP 2 installed. Resolve all these issues before you write your program because they will come back and bite you.
// Afterall I realized that even my comment lines have bugs
|
|
|
|
|
Is there a way to disable some library file from a project when building.
Thanks
|
|
|
|
|
Can't you just remove it from the project?
|
|
|
|
|
see the linker switch /NODEFAULTLIB:yourlibname in the doc.
|
|
|
|
|
I want to make a small script language in my author program like action script in Macromedia Flash. But I never know how and where to begin? I've a experience of making small complier. Is it alike making complier? Please give an idea about it. thanks.
|
|
|
|
|
I am looking for a sample C++ code to replace my c# code.
I do have the c# cmlcsvReader that does just that but I cannot ported to a different location because of the missing dll's.
Thanks
Pa trick
|
|
|
|
|
I converted a path to a region, but when I check if any points that made up the path are in the region with the function PtInRegion it returns false. Does anyone know if you can include the points that made up the path into the region.
|
|
|
|
|
what do you mean by "path"?
Jason Henderson My articles
"The best argument against democracy is a five-minute conversation with the average voter." - Winston Churchill
|
|
|
|
|
I'm using the BeginPath function followed by the LineTo function to draw lines that will make up the path. Then, I use the EndPath function. Finally, I convert the path to a region using PathToRegion. The problem is none of the points that I use to make up the path are detected by the function PtInRegion as being inside the region. I hope that makes sense.
|
|
|
|
|
Perhaps it considers that the pts aren't actually in the region. They just make up the boundary.
Jason Henderson My articles
"The best argument against democracy is a five-minute conversation with the average voter." - Winston Churchill
|
|
|
|
|
Hello everyone, i'm wondering why simple RasEnumConnections(..) doesn't work in WinXP platforms? I mean, when i 'run' a connection with program that checks every 500ms usin RasEnumConnections(), whenever i *click* on the icon in dial-up, programs gimme a good information that i want to connect somewhere. I am after testing this on XP's - well, i have to be onest : it does not work? Any ideas why ?
|
|
|
|
|
I am interested in printing the contents of a picture control (its a bmp), and was wondering if there are any useful links that might show me how...
Appreciate your help,
ns
|
|
|
|
|
Are you wanting to render the graphic itself, or display properties about the graphic such as size, colors, etc?
|
|
|
|
|
I display the bmps in the control and wanted to put in a file menu that will print the bmp out for me. Assuming thats doable.....I read about drawtext but I dont think thats going to work to print a bmp.....
Thanks
ns
|
|
|
|
|
See if this helps:
http://www.flounder.com/printbitmap.htm
|
|
|
|
|
I am looking athis this article. Thanks.
ACtually I think what I want to do is use code to just simply print out a bmp on my hard drive. There must be some simple way? Like invoking paintbrush or something?
Appreciate your help,
ns
|
|
|
|
|
Greetings,
I have some C++ source files that have a .cc suffix and I would like them to be recognized by Visual Studio 6.0 in the same manner as .cpp. Other than renaming the files (not an option for obscure reasons), how can I get VS to compile them exactly like .cpp files?
Thanks!
|
|
|
|
|
Add the /TP to the compile parameters and it will treat all files as C++. If you just want individual files then use /TpFILENAME. Have a look here for more details
|
|
|
|
|
THAT's what I was looking for!
Thanks!
|
|
|
|
|
Is there a Win32 function that retrieves the Computers screen resolution?
Thanks
|
|
|
|
|
I use this piece of code:
HDC hDC = GetDC(NULL);
if(hDC == NULL) return(FALSE);
int nHorzRes = GetDeviceCaps(hDC, HORZRES);
int nVertRes = GetDeviceCaps(hDC, VERTRES);
int nBPP = GetDeviceCaps(hDC, BITSPIXEL) * GetDeviceCaps(hDC, PLANES);
nHorzRes is the screen width (for example 1024), nVertRes the screen height (for example 768), and nBPP the color bits per pixel (8 bit = 256 colors, 16 bit = high color, 24/32 bit = true color).
-Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
|
|
|
|
|
Great !!
but how can I get my app. notified when the user changes the resolution?
|
|
|
|