|
It works better (sharing wise) if you have your tables seperate from the code/views etc. Its also handy to have your queries external.
Access's own user login bit has never seemed to quite get the hang of sharing. With a sort of random selection of locking techniques, one record or whole table.
This all seems to be ok once your tables are seperated.
Another point, which will no doubt cause a scrap amongst us all, is that I tend towards a non Access data type. DBase IV is a favourite, since it can be made accessible from many different language/office apps and you have a wide range of ODBC drivers that your own code can use.
(I'll wait behind the bike sheds for the first up)
We do it for the joy of seeing the users struggle.
|
|
|
|
|
What is your Access database version ?
If you used Access 2000, then you must use AfxGetModuleState for solve it !
See MSDN !
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Sorry ,I can't find the AfxGetModuleState function in MSDN
Can you show me how to use it?
thank you
|
|
|
|
|
One of member variables in AfxGetModuleState is about Database version, set it to 0x601 ... don't ask me WHY ? (it is because you are using Access 2000)
Then you can use Open function !
Bye, i'm now busy, sorry !
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
We are developing application in wince.We need to rotate the screen 90.Is there any way to do this.we
are using the following code to achive this,But its not working in proper way
unsigned short buffer[240][320];
unsigned short * pusLine = (unsigned short *)GXBeginDraw();
for (unsigned int y = 0; y < gx_displayprop.cyHeight; y++)
{
unsigned short * pusDest = pusLine;
for (unsigned int x = 0; x < gx_displayprop.cxWidth; x++)
{
//*pusDest = PixelCol;
buffer[x][y] = *pusDest;
pusDest+= gx_displayprop.cbxPitch >> 1;
}
pusDest += gx_displayprop.cbyPitch >> 1;
}
GXEndDraw();
pusLine = (unsigned short *)GXBeginDraw();
for (unsigned int x = 319; x>0; x--)
{
unsigned short * pusDest = pusLine;
for(unsigned int y = 0 ;y<239;y++)
{
*pusDest = 255;
pusDest+= gx_displayprop.cbxPitch >> 1; }
pusDest += gx_displayprop.cbyPitch >> 1;
}
GXEndDraw();
|
|
|
|
|
- Sometimes I do not include certain .h file(s), but the app still runs ok. I do not know why. Are there any defaults .h file(s)?
- Can you give me an example?
- Best regards,
Maer
|
|
|
|
|
There are no default .h files, you're probably either including stuff you don't need, or you're including other headers that #include the other ones you need.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
I am not sure about this Christian, but I think some headers are auto-inserted or perhaps they are in some pre-compiled format.
I use strcpy and strcmp without including string.h and I dont get errors.
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
string.h is the basic_string class, I believe. strcmp and strcpy are both part of the core C++ which you get for free, i.e. without having to include any external libraries, such as stdio, iostream, list, map, etc.
I'm not sure on this, but I'd say that the stuff you get for free is some sort of superset of the stuff that comes with C, and that the whole point is one of not including too much above C as default, because I know Stroustrup worked hard to make sure C++ was not much bigger or less fast than C. This is one major reason ( and the one he usually gives ) as to why there is no garbage collection built into C++.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
Thanks.
I guess you are correct.
Because the moment you use an API call, you need to include the required header file.
I think most of the header files used by CRT functions are auto-inserted for us.
Some like "process.h" need to be manually included.
Regards
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
Nope, try this:
- Create an "Empty" Win32 Console app.
- Create a new file and add this to it:
void main()
{
char abc[4];
strcpy(abc, "abc");
}
- Save the file and add it to the project.
- Build.
You'll find that it doesn't work unless you include string.h at the top. Moral of the story: the C compiler does not include any default headers (unlike Java which always gives you the java.lang.* package).
Regards,
Alvaro
|
|
|
|
|
I had seen a VC++ sourcecode used DirectX but i got a compile error:"error C2501: 'LPDIRECTDRAW7' : missing storage-class or type specifiers".I can find the discussion about IDIRECTDRAW7 MSDN but there is no declaration in <ddraw.h>which sad in MSDN.
Would you please telling me where can I get the defination of IDIRECTDRAW7 that is it's defined in which header file.thanks.
Scratch
|
|
|
|
|
IN the DirectDraw7 SDK, now defunct, you'll need to download 8. One thing that sucks with DX is constant upgrades and inter-incompatible SDK's.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
|
|
|
|
|
Yes,I have the latest SDK,but it is still there.My puzzle is where did Microsoft put the declaration of IDIRECTDRAW7?
Scratch
|
|
|
|
|
I got it.
Scratch
|
|
|
|
|
Is there a way to change the text size/font used in toolbars? I have created a number of classes to custom create toolbars derived from CToolBar and they work wonderfully. The only problem I have is that I don't know how to change the fonts of the text. Anybody with any clues?
TIA
Tim Dunn
|
|
|
|
|
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/CommCtls/CustDraw/CustDraw.asp
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
Hey all-
I have a huge project that has dependencies on approximately 18 other projects, all which are configured correctly through the depends section so that I should be able to just hit build and everything compiles (the exe and all associated dlls). Ok, this has been working fine for one version of the project, but I downloaded a new version from a different folder in sourcesafe, and I find that the compiler hangs, and can't be quit, no matter what. It's typically been limited to one of three files, that if I compile seperately, I can get the rest of the project to compile. However, if I do a rebuild all, it'll hit a file and as I said, cl.exe just sits there. I waited an hour, but it never came back.
What's worse is that I can't *kill* cl.exe, no matter what. I've tried kill from the Resource Kit, using the -f switch, which reports it killed it, but it's still there in the task list. What's worse is that it prevents NT4(sp6) from rebooting...I have to hit the power button to reset.
I've looked in the knowledge base, even on Google, but nothing comes up. The compiler heap (/Zm switch I think) is set to the max...2000, so in theory it's got all the memory it needs. I have plenty of disk space, and the machine has 256 meg of ram, dual processor.
This is making development very difficult...any help would be appreciated.
Ron
|
|
|
|
|
Yikes, sounds like a real pain in the butt. Here are a few things to try:
*) Install latest service pack
*) Do a rebuild all
*) Double check your include file paths (in the project and in dev studio)
*) Change the precompiled header settings for the problem files. (try using automatic first, then none at all)
*) Split up the problem files into multiple files
*) Replace your hard drive (it could be a hardware problem!)
*) Replace your RAM (unless you are using ECC)
*) Remove one of your processors (doubt this is the problem, but who knows)
Hope this helps.
Chris Hafey
|
|
|
|
|
What's worse is that I can't *kill* cl.exe, no matter what.
Isn't it wonderful? Just what you'd expect from Macroshaft, and here you got it. Bend over and say "Thanks!".
Seriously, this is a design decision (IMO a serious error in the NT kernel) that Microsoft apparently don't see as an error. The easiest way you can exhibit it is to create a process (only tested win NT5 - aka W2k) that
1) CreateFile a dummy file
2) Call SetEndOfFile to be at a gig (or five, or whatever is needed to make you disk subsystem use a large amount of time to zero-fill)
Now try to kill that process while it's running step 2... Good luck. It's locked from killing since it's now in a locked kernel-call that can take forever to complete...
|
|
|
|
|
Hmm, are you sure other operating systems support killing processes that are in kernel mode? If so can you describe the mechanism? It sounds like a terribly difficult problem!
Chris Hafey
|
|
|
|
|
No. But on the other hand I'm not aware of any other operating system that has system calls that can take up to several minutes, even hours, to complete - possibly even freezing the system from the users POV.
But this shouldn't be a problem, simply a matter of aborting an I/O request. Not exactly rocket science.
|
|
|
|
|
Hello Ron.
I haven't had this particular problem lately and like you say I can't see it being a resource problem.
But, I used to have trouble with an old Windows and to save me going in and out of Windows to run nmake, I split my make file.
Then did an Nmake of mafefiles, sort of thing.
To get yourself going I would do that very thing again. Though I am a touch worried that you say the problem seems to hinge arround one of three files. I would do a build of those you suspect and at least one before (thinking of the likely order of build) with full warnings switched on , I know you have to plough through junk too with this build, but as you do consider an old type problem, where you used to get a corrupt byte in the source file that confused the compilers. Even notepad is capable of this.
Mike. Are you saying that MS have got their cl.exe running at kernal-0 level? I would find that difficult to believe, or maybe your saying that a call it happens to make hi-lights a kernal bug?
We do it for the joy of seeing the users struggle.
|
|
|
|
|
I have an icon resource in my project. The icon has two devices (16x16 and 32x32). I have them colored different and I want the icon in my dialog to show up as the 16x16 icon not the 32x32 one. I tried commenting out the SetIcon() call where it loads the big icon to no avail. Any suggestions?
|
|
|
|
|
You need to use LoadImage() instead of LoadIcon(). LoadIcon() only loads 32x32 icons.
--Mike--
http://home.inreach.com/mdunn/
#include "witty_sig.h"
your with and
|
|
|
|