|
Can I recommend that you'd be better off using Chris Maunders grid control off this site ?
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
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
Hi Christian,
I read this article, but he didn't show how can i connect FlexGrid to DAO !!!
Can you write source code about it ...
I have a DataGrid or FlexGrid, HOW CAN I CONNECT TO DAO ?!
Do you know other Grid's for connecting DAO ?!
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
You want the grid to automatically populate from a database record ? I've always done it myself, I dunno if you can get the grid to do it for you.
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
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
Christian Graus wrote:
You want the grid to automatically populate from a database record ? I've always done it myself
Really ?! cooool !
You do it with DataGrid and DAO engine ?!
How ?!
Can you tell more ...
Please ...
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
No, I still recommend that you use Chris's grid, and not the MS DataGrid. I've used MSFlexGrid, and hated it. The concept is pretty simple, you iterate through the database, grab the values, and add them to the grid. I used ADO and Chris's grid, and it worked very nicely.
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
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
Good, I wanna use Chris's grid ...
Now, i wanna CONNECT Chris's FlexGrid to my DAO database ...
Can you tell me how can i do it, programitically ?
I'm wating for reply ...
Thanks !
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
I can't do much beyond reiterating my previous replies - I dunno of an automatic way, I just retrieve the values and enter them into the grid by hand. As in GetRecord/IterateThroughFields/PassEachFieldValueToAppropriateCell.
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
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
Hi Chrisitian,
Thanks you for introducing functions in FlexGrid !
Please, please, please if you found useful examples about connecting to DAO with DataGrid or FlexGrid or new other grid control, please send to hadi_rezaie@noavar.com ...
It is my last request of you !
Thanks again, hadi
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Hadi:
Here you can find a sample how make that with ADO, but with DAO is the same.
Best Regards
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
Thanks Carlos,
That was useful example !
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
I like to write a program to delete some special folder. I try this code but it generate error : "Can not delete file: file system error (1026)".
SHFILEOPSTRUCT sh;
sh.hwnd = GetSafeHwnd();
sh.wFunc = FO_DELETE;
sh.pFrom = "c:\\windows\\temporary internet files\0";
sh.pTo = NULL;
sh.fFlags = FOF_NOCONFIRMATION | FOF_SILENT;
sh.hNameMappings = 0;
sh.lpszProgressTitle = NULL;
SHFileOperation (&sh);
please help me!
Thank you very much!
BUNG
|
|
|
|
|
I am not sure you can delete "c:\windows\temporary internet files"
It's a special system folder [that stores temp IE files]
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
I've just installed VC++6 on a new P4 system, and I'm having an isolated obscure problem that I'm trying to prove is a problem with my hardware and not with VC++. I get this problem running win2k, XP, and Me.
The problem is that I get a compiler warning C2124 'divide or mod by zero' on a legit line of code:
int main()
{
double a = 1.0; // ok
double b = 2.0f; // ok
double c = a / b; // ok
double d = 1.0 / b; // ok
double e = 1.0 * 2.0; // ok
double f = 1.0 / 2.0; // Error C2124: divide or mod by zero
return 0;
}
I get the same problem with floats, but not ints.
Has anyone seen anything like this, or know of ways of proving that this is a problem with the CPU or mb?
Any help is greatly appreciated!
thanks,
~mark
|
|
|
|
|
Well, it might make you happy to know that I got a divide-overflow error on a P-III-600/128MB
int main()
{
double f = 1.0 / 2.0;
}
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
Nish,
I just tried the code on my PIII 1.2gig 512mb and it worked fine. What version of the compiler and service pack did you try it on.
Michael
|
|
|
|
|
Turbo C++ 1.01
I use that to test out small console progs
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
works fine on my PIII 600/512MB using VC6 SP5...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
Did anyone collided with a problem of break of a line not on words(Word-Wrap, DrawText-DT_WORDBREAK), but the same as in CEdit during input of a continuous line? I try to use this way in CStatic, but it does not work. If there are ideas, I shall be glad to discuss.
|
|
|
|
|
Hey, i want to change the background of a checkbox. Can somebody help me with that?
Thank you.
|
|
|
|
|
put the followin in OnCtlColor
if(nCtlColor==CTLCOLOR_STATIC )
{
pDC->SetBkColor(RGB(255,0,0));
}
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
Thanks, it works.... but it changes color only under the text... is there a way to change the backgorund color of the control as well because right now i have a small gray border around my checkbox.
|
|
|
|
|
hey, here's what i came up with for filling the backgorund.
i have the following in OnCtlColor
//**********
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: Change any attributes of the DC here
if(nCtlColor==CTLCOLOR_STATIC )
{
CBrush br;
CRect rc;
hbr = CreateSolidBrush( RGB( 255, 255, 255 ) );
m_1_sub_folders.ScreenToClient(rc);
br.Attach(hbr);
pDC->SetBkColor( RGB(255,255,255));
pDC->FillRect(rc,&br);
br.Detach();
}
// TODO: Return a different brush if the default is not desired
return hbr;
//**********
it works, but is there some other way to do it?
Thank you.
|
|
|
|
|
Hey Guys
I have a shell extension DLL i have written and i get this error:-
RegSvr32: LoadLibrary(".\ReleaseMinDependency\RCAS.dll") failed.
GetLastError returns 0x0000001f.
when i compile and it trys to register the DLL has anyone got any ideas what this is. It used to work till i installed the new platform SDK. Unfortunately i need the new platform sdk for it to.
Cheers
Peter
|
|
|
|
|
Your DLL is compiling in ReleaseMinDependrncy mode. In the Buid menu select the build type to either Release or Debug.
|
|
|
|
|
I only have ReleaseMinSize and MinDependency options as well as unicode versions of the above no plain release option. Also the same error occurs for all the release ones. If i compile in debug mode though i get this error
Linking...
Creating library Debug/Software to Sign and Verify Files.lib and object Debug/Software to Sign and Verify Files.exp
Software to Sign and Verify Files.exp : warning LNK4070: /OUT:RCAS.DLL directive in .EXP differs from output filename "Debug/Software to Sign and Verify Files.dll"; ignoring directive
CertificateSelection.obj : error LNK2001: unresolved external symbol _CryptUIDlgViewContext@24
Debug/Software to Sign and Verify Files.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
if this helps to solve the problem at all.
Cheers
Peter
|
|
|
|