|
Microsoft Calendar Control 8.0(Mscal.Ocx).
There are some Properties, ie: Month, Year. I can get their values in VB program like "value1 = m_Calendar.Month" , "value2 = m_Calendar.Year".
But how to get "Month","Year" in VC++ program???
Thanks a lot.
David
|
|
|
|
|
I'm programming a database soft.Fortunately,I found and used CGridCtrl(2.24) into my program(list data,print it,and set various features...).I want execute SQL clause and fetch data from relevant tables.But I found it difficult to do that(compared to MS Data Grid , DB Grid,etc).
Could you help me?
Thanks for any help.
Sincerely,Pole.
|
|
|
|
|
Pole wrote:
I want execute SQL clause and fetch data from relevant tables.
I don't think it support it like MS data grid.You have to handle everything yourself in that datagrid.
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
Hi,
Anyone noe what error is this and how to remedy it:
First-chance exception : 0xC0000005: Access Violation.
I cannot seems to find it in the msdn library
|
|
|
|
|
I haven´t seen documenation about it, but it always fires on my screen when my code reads/writes to a unassigned memory block. This happens very usually when working with pointers and new/delete operators. Check all the rountines using dynamic memory allocation before the point that breaks the execution of your application.
"nobody knows it, but you´ve got a secret smile, and you use it only for me"
|
|
|
|
|
it means your process does not have access to the memory it was trying to use. like the previous poster noted, this usually means you have a bad pointer. check all your pointers - make sure they have valid values.
-c
A man is like a rusty wheel on a rusty cart,
He sings his song as he rattles along and then he falls apart.
-- Richard Thompson
|
|
|
|
|
Hi all,
Thanx a lot for the help.
I think i try to paint u all a better pic:
In my prog, I have 2 arrays. The size of the array depend on the size of my image. One array use a "new" operator to declare and the other one is using the CArray.
my program uses extensive recusive function to process the image. When i try my program on a small image (eg ard 100x100 pixel) it works perfectly fine.
When i try it on large images the first-chance exception occur.
when the error occur, there is a lot of the recusive function being called. And the error occur at the begining of the function (no code is there).
Can anyone please enlighten me what has happened and any possible solutions ?? Thanx you !
bk
|
|
|
|
|
Hi
Probably you are trying to access memory that is read only and it might be caused by using pointers in an unproper way (maybe you haven't initialized something or you are trying to access memory that you've just released). Try to use call stack to find out where have you made that mistake.
Greetings
|
|
|
|
|
0xC0000005 is a GPF. You read or wrote memory you didn't have access to. Usually this is a bad, uninitialized, or dangling pointer.
--Mike--
Just released - RightClick-Encrypt v1.4 - Adds fast & easy file encryption to Explorer
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Hello there,
I looking for a function in the recordset class that return the current position in the recordset !!!
Like this:
dwPos = m_Rs.GetCurrentPos();
Also, I’m looking for other function that can jump to special record by record number !
Like this:
m_Rs.SetCurrentPos(50);
Is there thease functions in the recordset class, currently ???
If not, can you tell me how can I write this ??
Regards,
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
You can use bookmarks for storing the current position.
As far as i know is no way currently to jump to a random position.
But I guess you could always use 'Find', if you know any thing
about the record you want to jump to(ex primary keys are usually
automunbers)
|
|
|
|
|
GetAbsolutePosition()
SetAbsolutePosition()
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
Hi there,
I’m writing a database project …
I used Access database …
I have 50925 records in this database …
My program is very LOW in opening that in starting up (8 seconds)
Is there any way to improve the SPEED of opening the database ?!!!!!!!!!
NOTICE: I connected to database by ADO (OLEDB JET 4.0).
Regards,
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
What about using MSDE instead?
int x=1, y=5;
x^=y^=x^=y;
<a href="http://www.codeproject.com/tips/StupidXORTrick.asp" target="_blank">ClickHereForHelp();</a>
|
|
|
|
|
MSDE ???
what is it ????????
I really didn't hear anything about it !!!!
Could you explain about it ???
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
MSDE stands for Microsoft Desktop engine. It´s a light version of SQL Server, this version comes without the graphical administrative tools.
Follow the Link:
http://www.codeproject.com/useritems/JetMSDE.asp
|
|
|
|
|
Hadi_Rezaie wrote:
MSDE ???
I think desktop version of SQLServer.I don't think it helps you.
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
Yes, it is the desktop SQL engine. Since it is quite a bit faster it might well help.
int x=1, y=5;
x^=y^=x^=y;
<a href="http://www.codeproject.com/tips/StupidXORTrick.asp" target="_blank">ClickHereForHelp();</a>
|
|
|
|
|
how do you create an extra item on your right click menu when you right click on a file? Can this be done in VC??
|
|
|
|
|
See M. Dunn's articles about shell extensions here on CP.
Guide to Writing Shell Extensions[^]
int x=1, y=5;
x^=y^=x^=y;
<a href="http://www.codeproject.com/tips/StupidXORTrick.asp" target="_blank">ClickHereForHelp();</a>
|
|
|
|
|
|
See this[^] series of articles, and look at the other articles in the shell programming section.
"We are the knights who say Ni" (The Knights Who Say Ni)
|
|
|
|
|
Whoops, we're all too quick...
"We are the knights who say Ni" (The Knights Who Say Ni)
|
|
|
|
|
amazing!
tx, i'll have a look.
|
|
|
|
|
Using shell extensions is the most common way, but there is a very less complicated way using the registry, which allows to add commands to the "right click menu" without writing a COM component; just adding a registry key.
Here is a example:
We want to add a new option in the context menu of ".exe" files, well, we open regedit and go to the key "HKEY_CLASSES_ROOT\exefile" (or ".XXX" for other extension). Here, it must be a key called "shell" (if it doesn´t exist, we should create it). Under this key we add the name for the new option in the menu, for example "Scan". Now into the "Scan" key, it should be created a new key called "command", whose default value should be the name of the command to execute when clicking our command, for example "c:\scanner.exe %1" ("%1" is replaced by the file clicked in the explorer)
This allows not adding icons or other extended features.
"nobody knows it, but you´ve got a secret smile, and you use it only for me"
|
|
|
|