|
Did you change name of variables?
double arg2[], const int number2,const int row2,const int column2)
|
|
|
|
|
thanks, solved already..but my friend said this is not dynamic array..he asked me to create a dynamic 2D array...how to create? but i can create 1 D dynamic array....thanks
Li Zhiyuan
5/10/2006
|
|
|
|
|
|
thanks, but company limited me to use what u sent..do u have other options, thanks.
Li Zhiyuan
|
|
|
|
|
Why your company limited you?
|
|
|
|
|
Hello,
I am trying to build a Microsoft Text Service sample code from Microsoft site: "Simple Text Service Demo" . I have platform SDK for windows server 2003 and Visual Studio 2005 installed.
I have opened an empty Dll project in Visual Studio 2005 and built the project.
The problem is that when I try to register TextService.dll I get the message:"textservice.dll was loaded but DllRegisterServer entry point not found".
Does anybody have an idea what seems to be the problem?
Should I change the project settings?
Thank you very much,
T.R.
|
|
|
|
|
Did you add a .def file to your project that exports the DllRegisterServer function
(or did the sample code include a def file that you need to add to your project)?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi,
I have a property sheet (in wizard mode) and on one property page of this sheet, I have a pop up dialog.
This pop up dialog has a tab control which is again showind a child dialog (no border, style = child).
So the picture looks like this
Property Sheet
Property Page launches
CMyDialog (pop up)
CMyDialog has CTabCtrl and Child dialog to show on the tab.
This child dialog doesn't receive any messages. If I click on the dialog, nothing happens. Tabs get changed though.
I am wondering if its a focus problem? how should i fix it.
The code to add this child dialog with the tab control looks like this
Init of Tab Control :
Tab Contrl->Add tabs;
Create a vector of dialogs
Instantiate the dialog class, add it to vector
Create and Repos the dialog window, and say ShowWindow.
Thanks in advance,
Misha
Evil triumphs when good people sit quiet...
|
|
|
|
|
misha_grewal wrote: Init of Tab Control :
Tab Contrl->Add tabs;
Create a vector of dialogs
Instantiate the dialog class, add it to vector
Create and Repos the dialog window, and say ShowWindow.
Can you show the actual code you use to do this?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi all
I am using debuggin API for my purposes.
After I have initialized everything correctly each time I use StackWalk64 function it doesn't work.
Evenet if it returns TRUE I can see on the debug output
First-chance exception at 0x00000000 in TestMyStackTraceDebugger.exe: 0xC0000005: Access violation reading location 0x00000000.
I notice that the CONTEXT returned is almost all set to 0 and data returned in STACKFRAME sturcture are all 0.
What is wrong?
Each of the following (in order) was successful returning TRUE
-CreateProcess //with Debug permission
-WaitForDebugEvent
-OpenThread
CONTEXT ctx;
memset( &ctx, 0, sizeof( CONTEXT ) ); //init struct!
HANDLE threadHandle = OpenThread( THREAD_GET_CONTEXT , FALSE, de.dwThreadId );
GetThreadContext( threadHandle , &ctx );
-GetThreadContext
-SymSetOptions
-SymInitialize
STACKFRAME64 sf;
memset( &sf, 0, sizeof(STACKFRAME64));
sf.AddrPC.Offset = ctx.Eip;
sf.AddrPC.Mode = AddrModeFlat;
sf.AddrStack.Offset = ctx.Esp;
sf.AddrStack.Mode = AddrModeFlat;
sf.AddrFrame.Offset = ctx.Ebp;
sf.AddrFrame.Mode = AddrModeFlat;
#endif
StackWalk64(
IMAGE_FILE_MACHINE_I386,
gamerProcess,
threadHandle,
&sf,
&ctx,
NULL,
SymFunctionTableAccess64,
SymGetModuleBase64,
NULL );
Kind Regards
ManuStone
<div class="ForumMod">modified on Wednesday, January 30, 2008 1:18:34 PM</div>
|
|
|
|
|
Did you use your debugger to see where the code crashes exactly ? Check the state of the different variables to see if everything looks OK.
|
|
|
|
|
Why didn't you set the ContextFlags member of CONTEXT .
Is the thread in suspended mode, as recommended by documentation?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
Dear all,
Im my application when i cilck a music button , it has to pop up a window with a music file list selected to play and a option to add the othe files in to this list. and whenever i click the music button again it has to hide...
How to show a dialog and hide with the main dialog active always...
Manjunath S
|
|
|
|
|
Manjunath S wrote: Im my application when i cilck a music button , it has to pop up a window with a music file list selected to play and a option to add the othe files in to this list. and whenever i click the music button again it has to hide...
Probably the CHideAndSeek() class should help?
Seriously though, what is your requirement?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Actual i have to design a dialog similarly as the equavalizer window that comes in winamp,(whenever we press a arrow it opens and whenever we press a arrow again it hides)...
Manjunath S
GESL
Bangalore
|
|
|
|
|
Will the ShowWindow() API help you?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Use a combination of SetWindowPos and/or MoveWindow to grow/shrink said window; thus show or hiding a portion of the dialog.
|
|
|
|
|
|
|
Will the compiler optimize the MESSAGE MAP of each class?
Or else, I'd better rearrange it by putting high-frequent messages at top of the array.
|
|
|
|
|
Does it really matter?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
How could the compiler know which messages occur with more frequency?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I guess he supposes the compiler optimizing message handling on position (in the MESSAGE_MAP list) based mechanism, this way the developer could suggest the compiler itself what will be the more frequently used message.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
It's in the service pack, Mark. Come on, you're gonna have to keep up.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Exactly. You can lead a compiler to water but you can't make it fish.
led mike
|
|
|
|