|
So its in the CDaoDatabase and not in the CDaoWorkspace.
Thanks
|
|
|
|
|
Hey, uh, how do you delete a file from C++?
Dude
|
|
|
|
|
int remove( const char *path );
#include <stdio.h>
void main( void )
{
if( remove( "remove.obj" ) == -1 )
perror( "Could not delete 'REMOVE.OBJ'" );
else
printf( "Deleted 'REMOVE.OBJ'\n" );
}
|
|
|
|
|
I thought perror function wasn't available in VC++ ?
I saw it in Borland all right.
Or maybe I just didn't link with the correct libraries.
Regards,
Venet.
--------
Black holes are where God divided by zero.(Steven Wright)
|
|
|
|
|
Hey, uh, try DeleteFile, Dude!
Scot Brennecke
Software Developer
VC++ MVP
|
|
|
|
|
|
I'm trying to develop a tool that give me system information like MSINFO does.
I need to know hardware info such what type of cpu, how much memory, what card of network card, etc...
and software info such what type and version of OS, drivers, suites are installed, etc.
Does anybody could give some guide?
Thanks all.
Fernando H. Pratti
|
|
|
|
|
Nearly every piece of information that you listed has a separate API function to retrieve it. Some are easier to use than others. If you already have a tool on your system that gathers this information (such as MSInfo), use the Dependency Walker tool (Depends.exe) to view its dependencies. Look at the API functions it calls, and that will give you leads to follow for your own tool.
Some of the API functions you'll need include: GetVersionEx, GetSystemInfo, GetDiskFreeSpaceEx, and GlobalMemoryStatus.
Scot Brennecke
Software Developer
VC++ MVP
|
|
|
|
|
|
Is there any tool like this for Remote System?
Please....
|
|
|
|
|
Hi all, I have a straight forward problem for those who know anything about Direct3D and matrices. I have managed to setup the geometry pipeline and get my object (a cube) rotating around the world spaces origin (i.e. you can see it spinning around the camera view - it disappears out the left side of the screen and re-enters at the right, and keeps going). However, I would like it to spin on its own axis in front of the camera (not around the damn thing). I have setup the rotation (x,y and/or z), translation and scale matrix functions, but am unsure as to which ones I use? At the moment I am modifying the world_matrix because I want the actual object to spin and not the camera. My world matrix is the Identity matrix and in the UpdateFrame() function adds the rotationx evaluation before set the transform to that matrix and rendering it. Does this need to get set every frame update? or should I only set it once but do something else to the matrix to get it going? Urgent responses would be extremely appreciated (obviously).
Cheers all,
Alan.
"When I left you I was but the learner, now I am the master" - Darth Vader
|
|
|
|
|
Hi there,
I'm writing program which i have to transparent bitmaps on that.
The program must be work on Win2000 and Win98 Arabic version.
For trasparting bitmaps i used TransparentBlt function.
As i read in MSDN, TransparentBlt could work on Win98 and Win2000.
I tested my program on Win2000, it works fine.
But when i test my program on Win98, my program don't show transparent bitmaps !!!
What's wrong ?
Any Idea ?!
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
I have never had any luck using TransparentBlt() on win98. There are a couple good methods for drawing transparent bitmaps in the Bitmap & Palette section here on The Code Project, but my favorite method is the True Mask method.
---
CPUA 0x5041
Sonork 100.11743 Chicken Little
Within you lies the power for good - Use it!
|
|
|
|
|
Thanks for your helps
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
how to work with them;rather what are all those exts,orgs...i am totally confused...havent found a (good) article about that....can u answer or please lead me to one......
ps:who said there arent women programmers...i have started out
michelle tanner
|
|
|
|
|
There is a whole chapter dedicated to "Coordinate Spaces and Transformations" from the GDI SDK documentation in MSDN.
|
|
|
|
|
how exactly to use CArchive?An example would help.
also,how to use fstream in MFC?
thanx.
|
|
|
|
|
When someone asks for a code example on the MS newsgroups, I usually point them to CodeProject. But you're already here! This website is rife with example code.
Scot Brennecke
Software Developer
VC++ MVP
|
|
|
|
|
See my tutorials on serialization.
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Hi,
I've just joined a project for a temporary period and they're using Developer Studio 4.2. Can anyone tell me what updates are available for this version as there seems to be a couple of bugs. For example, in the resource editor, if you try copying and pasting areas of a bitmap (for a treelist for example) between bitmap images, the pasted image is corrupted (mirrored and some other corruption).
Thanks
"The folly of man is that he dreams of what he can never achieve rather than dream of what he can."
|
|
|
|
|
To my knowledge, MS did not issue service packs for DevStudio back then. The only updates that are available are later versions of DevStudio. IMO, VS 6.0 is the best thing they've produced yet. Unfortunately, you can't even get that from MS anymore, since they're trying to shove "dot net" down our throats.
Scot Brennecke
Software Developer
VC++ MVP
|
|
|
|
|
I've used VC 6.0 extensively but I actually like 4.2 now I'm using it. It's very lightweight compared to 6.0, the help is much faster - just uses a primitive window to display the help and examples rather than 6.0's MSDN type interface. Builds are really quick as well!
There are some updates available for 4.2 but M$ being what they are, of the several available, one of the (apparently core) updates is unavailable from their site. I was just hoping someone might know of a bugfix for the resource editor amongst other things. Also, the updates as listed by M$ aren't exactly cleary described.
For anyone interested, the updates are here:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q156934
One of the ones I think I need is MSDEV42B.EXE which isn't available unfortunately.
"The folly of man is that he dreams of what he can never achieve rather than dream of what he can."
|
|
|
|
|
I searched Google for the exe name and found a link from a page to the microsoft ftp site. I was able to download the file, so it should work for you also:
MSDEV42B.EXE
Roger Stewart
"I Owe, I Owe, it's off to work I go..."
|
|
|
|
|
Thanks for that, I just went and got it. Wonder why all the others were working before and that one wasn't?
"The folly of man is that he dreams of what he can never achieve rather than dream of what he can."
|
|
|
|
|
what I am basically trying to do is: when I move the mouse over my transparent dialog with
controls, the window should become opaque and when I move the mouse out of the window, the
dialog should become transparent again.
So far I have succeeded in handling only the event WM_MOUSEMOVE and I couldn't do the same
with WM_MOUSELEAVE.
I want to do somethink like the transparent window of Miranda IRC but I can't find yet any
articles about mouse movement tracking (over dialogs with controls on them).
How can I do that?
Best regards,
H.
|
|
|
|