|
|
template<typename T> class MyClass;
template<> class MyClass<double>
{
...
T m_Var;
...
void fun(){
// your double work
}
};
template<> class MyClass<int>
{
...
T m_Var;
...
void fun()
{
// your int work
}
};
-- modified at 4:08 Thursday 20th July, 2006
|
|
|
|
|
|
_beginthread(void( __cdecl *start_address )( void * ),unsigned stack_size, void *arglist
);
void * arglist ==> can this point to a list of arguments.
Since the thread function can have only one parameter of void * how can i achieve the
requirement is to pass set of initialisation to the thread function.
Any body help me ?
for thendral
|
|
|
|
|
better u create a structure will all the set of variables u want to pass to thread. Now pass the pointer of this structure to the thread.
In the thread function, u can again convert the void* pointer to a pointer of your structure and use all the member inside it.
nave
|
|
|
|
|
R.ilan thendral wrote: how can i achieve the
requirement is to pass set of initialisation to the thread function.
Cast any class or structure to void and recast it back from thread!
"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
|
|
|
|
|
Hi,
im makin a game in VC++ 6.0 using opengl as the graphics library. i hve loaded the 2d trees and and the trees are TGA's ,which is done for transparency purpose. well my question is that when i run the program the trees do appear but after a while(50 seconds or so) the trees disappear and a grid appears where the trees were loaded once. if some one can find me the solution 2 this problem that'll b great.
Regards.
When the goin gets tough then tough gets going
|
|
|
|
|
ooola rocks wrote: im makin a game in VC++ 6.0 using opengl as the graphics library.
you are at wrong place!,, there are many game development site you ahev to search for that!@
"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
|
|
|
|
|
From the symptoms I don't know what it might be, never happened to me! Could you provide more information? Could it be a memory leak? How is time related to the disapearence? Shouldn't it be related to the number of frames?
|
|
|
|
|
HI ALL
I HAVE CREATED AN DIALOG BASED APPLICATION IN WHICH I ADD TWO DIALOGS OF CHILD TYPE AND THEIR CALSSES ARE CPRO1 AND CPRO2 BOTH ARE DERIVED FROM CPROPERTYPAGE.
NOW HOW CAN I GET THESE names on tab as
----------------------------------------------
| | |
-----------|----------------|-----------------|
==============================================
and i try code as
CPro1 m_pro1;
CProp2 m_prop2;
m_propertysheet.AddPage(&m_pro1);
m_propertysheet.AddPage(&m_prop2);
m_propertysheet.m_psh.dwFlags |= PSH_NOAPPLYNOW | PSH_PROPTITLE;
m_propertysheet.m_psh.pszCaption = "Simple";
//m_propertysheet.m_psh.nStartPage = 1;
m_propertysheet.DoModal();
and can u tell me how it appear on right click
Ashish Dogra
MCA
Noida
|
|
|
|
|
ashish dogra wrote: HI ALL
I HAVE CREATED AN DIALOG BASED APPLICATION IN WHICH I ADD TWO DIALOGS OF CHILD TYPE AND THEIR CALSSES ARE CPRO1 AND CPRO2 BOTH ARE DERIVED FROM CPROPERTYPAGE.
NOW HOW CAN I GET THESE
what did i suggest you yesterday ?
wasn't it about stopping shouting ?
come on, i'm sure a good boy like you can do this effort... just reach the CAPS-LOCK key of your keyboard until the LOCK LED turns off
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
Are you teacher?your speak like a affectionate teacher
whitesky
|
|
|
|
|
no sir i am not teacher
iam fresher and searching job
Ashish Dogra
MCA
Noida
|
|
|
|
|
WhiteSky wrote: Are you teacher?your speak like a affectionate teacher
not, just tired to repeat him the same things again and again
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
i hav ind that how to name the property sheet
but how to name the tabs on that property sheet tell me
thanks
Ashish Dogra
MCA
Noida
|
|
|
|
|
if you define the contents of the tabs as dialogs in the resource file, then only rename these dialogs...
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
thanks
i off the title bar button
Ashish Dogra
MCA
Noida
|
|
|
|
|
Hi All,
following linker error i m facing,while running program on eVC++ 4.0:
FileTransferClientView.obj : error LNK2019:
unresolved external symbol
"public: int __cdecl CIPAddressCtrl::GetAddress(unsigned long &)"
(?GetAddress@CIPAddressCtrl@@QAAHAAK@Z)
referenced in function
"protected: void __cdecl CFileTransferClientView:
:OnDestroy(void)" (?OnDestroy@CFileTransferClientView@@IAAXXZ)
Please help me...
Regards,
Frozen.
|
|
|
|
|
|
u got some problem with that?
|
|
|
|
|
|
nothing......... just get lost
|
|
|
|
|
yeh,
i am also facing the same problem. But i am working in VS2005. But
trying to build VC++ 6 code. I think you are working in the dll program.
The problem may be due to the .def file. Are you linking any .lib files ?
If you rectified the error, just post the solution.
Karthik M
|
|
|
|
|
hi,
Just navigate this link;
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vccomp/html/4392be92-195c-4eb2-bd4d-49cfac3ca291.htm
Regards,
Karthik M
|
|
|
|
|
Hi! Everybody.
I m trying to repair Ms Access .mdb files in VC++. Is anybody have some code or any other infornmation that may help me regarding it.Plese help me regarding the Ms Access .mdb file format.
Thank You.
nirmal
|
|
|
|