|
should have done a better search in the forum before asking
http://www.codeproject.com/script/comments/forums.asp?msg=34506&forumid=1647&kw=open+documents#xx34506xx
in case anybody else is interested
marcela bovio
|
|
|
|
|
hi all,
i have a dialog based class name called smp and global function which is callback compare function for sorting ctreectrl::CSortChildrenCB();
how can i try to access member variable of smp from compare function?
i had tried by declaring as followed inside the global function:
smp *tempsmp = new smp();
AfxMessageBox(tempsmp->strName);
i got empty string...
global in vc++ is very confusing..
|
|
|
|
|
you can not just create another smp... (it will instantiate a new smp object that does not have the correct strName)
you have to pass the pointer of you smp into the global function in order to access the strName
something like this:
void compare(smp* s)
{
AfxMessageBox(s->strName);
}
Casa.Sapo.pt
|
|
|
|
|
I see. and thank you
i solved my problem by creating new global variable which is to be able to access from global function.
after i set my new global variable = smp local variable , the problem solved.
|
|
|
|
|
try to use as few global fuctions and variable as you can...
Casa.Sapo.pt
|
|
|
|
|
Hi there ( It’s my last time ),
How can I load a JPEG file by Microsoft Forms Image 2.0 ActiveX, programically ?
There is a function:
SetPicture(LPDISPATCH newValue);
How can I pass value to first parameter of this function ?
Plz help me !
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Hi there again,
How can I load JPEG files without using a ActiveX in my GDI programs ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
I'm sure you can find it in the articles of CP in GDI section.
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
Hi there,
Is Microsoft Forms Image 2.0 ActiveX in all of Windows versions ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
I want to study proxy severs.
Please tell me where could find the Proxy Source code??
Davidwu
|
|
|
|
|
?????No body know?
|
|
|
|
|
Hi!
I want to disable some menu items in my IDR_MAINFRAME menu, when I hit a Button. I have a SDI-programm with a tab control. can somebody say my what to do?
thx Michi
|
|
|
|
|
You need to set a status indicator when you hit the button. Then, you need to handle the UPDATE_COMMAND_UI message.
for example:
void CSomeClass::OnButtonClick()
{
m_bEnableMenuItem = false;
}
void CSomeClass::OnUpdateUI(CCmdUI* pCmdUI)
{
pCmdUI->Enable(m_bEnableMenuItem);
}
|
|
|
|
|
This might be wrong board for this question but was just trying my luck to see whether anyone here had a suggestion..
I have a situation which I am trying to solve just by creating SQL's without programming because of some installation requirements. I did not have any luck with it. Was wondering whether anyone knows of a solution :
Here is the situation-
DB2 Table 1:
------------
FirstName LastName DateOfBirth History Begin Date
--------- -------- ----------- -----------
Joe Smith 01/01/95 05/25/1997
Joe Smith 01/01/95 11/01/1997
Bob Smith 05/07/55 10/01/1998
Sherri Gaston 11/11/73 11/15/1999
Sherri Gaston 11/11/73 12/20/1999
Sherri Gaston 11/11/73 05/05/2000
Primary Key in the above table is FirstName, LastName, DateOfBirth.
From the above table I am trying to create a "daily" level table which will have a record for every primary key starting from the first history Begin Date record date to the next history Begin date.
So for example the result for "Joe Smith" will be
Joe Smith 01/01/95 05/25/1997
Joe Smith 05/26/1997
Joe Smith 05/26/1997
Joe Smith 05/26/1997
Joe Smith 05/26/1997
.........until 11/01/1997 (his last record's history begin date).
I don't mind building intermediate temporary tables. Can anyone help or thing of something?
Thank you
M
|
|
|
|
|
One way I could suggest doing this is to...
1) Create a new table for dates (say -re-generate dates out 5-10 years).
2) As part of the date table have a DUMMY_COLUMN which has a value of say 1.
3) Add a DUMMY_COLUMN to your name table again with a value of 1.
4) Now you can do a join against the 2 tables and get the date range you want at any time.
This method should work in just about any database product you might use.
Another way is to write a stored procedure to build the target table. Depending on what version/platform of DB2 you are using this can be easy or very difficult. It could be written in JAVA, COBOL or whatever other language DB2 SPs support.
|
|
|
|
|
But how do u do a join to let the date range start in the first record and go until the next records history date if the keys are the same.
Thank you
M
|
|
|
|
|
At me some libraries are not created for VC.NET!
Whether I can establish VC.NET and VC ++ 6.0 simultaneously?
Best regards,
Eugene Pustovoyt
|
|
|
|
|
Eugene Pustovoyt wrote:
Whether I can establish VC.NET and VC ++ 6.0 simultaneously?
Yes.You can.
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
Thank you Mazdak!
Best regards,
Eugene Pustovoyt
|
|
|
|
|
If the libraries use STL, you might run into some problems as STL is different between 6 and .NET.
Michael
Communication is the first step towards enlightenment.
|
|
|
|
|
Thank you Michael!
Best regards,
Eugene Pustovoyt
|
|
|
|
|
In VC6 there was an option to show all the keyboard binds. Does that exist in VC7?
Todd Smith
|
|
|
|
|
Is this what you're looking for?
Tools->Options->Environment->keyboard
I don't see a way to see the bindings listed by key. Instead they're listed by command.
Cheers,
Tom Archer
Author - Inside C#, Visual C++.NET Bible
|
|
|
|
|
There is an addin called KeyMap available here
Click here
There are lots of other useful addins
Rama Krishna.
Also known as Master of VS.NET
|
|
|
|
|
Rama Krishna wrote:
Also known as Master of VS.NET
This is exactly what I was going to call you and then I saw your sig! Great links and thanks!
Cheers,
Tom Archer
Author - Inside C#, Visual C++.NET Bible
|
|
|
|