|
If by 'string tabe' you mean the string table stored in the resources, then use the resource functions to accquire access to them.
Load the application with LoadLibrary() then find a resource with FindResource() or one of the EnumerateResource***() functions.
|
|
|
|
|
Ohhh no
I want to copy string table manually from one application to other.
Thanks and Regards
Atool
Atool
|
|
|
|
|
what's wrong with a copy and paste? or even open both files in VS and drag the contents over?
|
|
|
|
|
whats the best way to get environmental variables like %windir% %userprofile% and so on?
i've tried the above but vc++ 6.0 dont recognize them when for instance doing something like this:
CString MyVar;
MyVar = "%windir";
MessageBox(MyVar,"titletext");
..returns "%windir%" in the messagebox not "C:"
there may be a simple solution but i cant find it.
anyone?
thanx!
|
|
|
|
|
hobbyprogrammer wrote: whats the best way to get environmental variables like %windir% %userprofile% and so on?
Try GetEnvironmentVariable (VC++) or getenv (C++)
|
|
|
|
|
You need to convert the %***% to a real path before you can use it as a path. Try ExpandEnvironmentStrings()
|
|
|
|
|
Hai all,
class a
{
virtual ~a () { };
}
class b : a
{
~b () {}
}
if a class defined as in above, defined as in below
a *pa = new b ();
delete a;
then, how the virtual table created by compiler for this?
Ravindra M
+919849760694
|
|
|
|
|
What do you want to know exactly ?
In the case that you described, then the destructor of b will get called when you delete pa (I think you made a typo and wanted to write 'delete pa' instead of 'delete a').
(And please use the pre tag when you post code)
|
|
|
|
|
Hai Cédric Moonen,
Thanx for your reply. Internal process i.e., how the process knows b is supposed to be destroyed first and then a. can u explain?
Ravindra
Ravindra M
+919849760694
|
|
|
|
|
Maybe this[^] will answer your questions.
|
|
|
|
|
Could someone please help me with the following problem:
1. Within a modal dialog I trap an edit control's ON_EN_CHANGE message
which brings up a modeless dialog with a CListCtrl on it.
2. Depending on the text of the edit control an item is selected and
brought to the top of the list with the CListCtrl::Scroll function.
The item is now selected and has got the focus.
3. If I before any mosue interaction press the down arrow key the
first item is selected and NOT the next item which is what I want.
I urgently need to solve this problem so I put my hopes to code project.
Thanks
Lars
|
|
|
|
|
It sounds like in addition to scrolling to the item, you need to select the item as well.
|
|
|
|
|
Hi Mark,
Thank you for your reply.
However I have selected it with:
m_pModelessDialog->m_cListCtrl.SetItemState( nIndex, LVIS_SELECTED, LVIS_SELECTED );
m_pModelessDialog->m_cListCtrl.EnsureVisible( nIndex, FALSE );
Do you have another suggestion???
Thanks and regards
Lars
|
|
|
|
|
Oh ok
What if you also set LVIS_FOCUSED?
|
|
|
|
|
Mark,
Thanks for your suggestion but unfortunately that does not work either.
Any other idé?
Regards
Lars
|
|
|
|
|
program using MFC BUTTONS
PRA
|
|
|
|
|
wrote: program using MFC BUTTONS
ok
nave
|
|
|
|
|
Then we need to guess your problem?;)
|
|
|
|
|
WhiteSky wrote: hen we need to guess your problem?;)
yesh.. become astrologer
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
ThatsAlok wrote: become astrologer
Where is he?;P
|
|
|
|
|
Your flux capacitor appears to be out of alignment.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Either that or she left it back in the future.
|
|
|
|
|
According to this[^] site, there's "about 207,000" possibilities for WTF your question is
I'm thinking there's more than that..
|
|
|
|
|
wrote: program using MFC BUTTONS
DONT DO THAT>>>>> NO BUDDY HELP YOU.. are you deaf??? or we
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
I'm creating a program that stores packets into an oracle DB. When I try to get a count of how many entries are in my 'packet' table I receive an "ORA-00911: invalid character" exception.
Oracle describes this error:
ORA-00911: invalid character
Cause:
identifiers may not start with any ASCII character other than letters and numbers. $#_ are also allowed after the first character. Identifiers enclosed by doublequotes may contain any character other than a doublequote. Alternative quotes (q'#...#') cannot use spaces, tabs, or carriage returns as delimiters. For all other contexts, consult the SQL Language Reference Manual.
And my code that causes the error....
{
String *cmdString = S"SELECT COUNT(*) AS rowcount FROM packet;";
OleDb::OleDbCommand *oracleCommand1 = new OleDb::OleDbCommand();
oracleCommand1->Connection = oracleConnection;
oracleCommand1->CommandText = cmdString;
oracleConnection->Open();
gPacketCount = Convert::ToInt64(oracleCommand1->ExecuteScalar());
}
Is the asterisk in 'COUNT(*)' causing my error? If so, is there another way to get a row count?
|
|
|
|