|
|
Let's try with this one:
WINSHELLAPI BOOL WINAPI ShellExecuteEx(
LPSHELLEXECUTEINFO lpExecInfo
);
Just three words: void main(void)
|
|
|
|
|
create a batch file ! execute_com.bat
open it write commands line by line ! and winexec it !
cool ah
//rate me or hate me
I am the mighty keeper of the book on knowledge . Contact me to get your copy .
|
|
|
|
|
hi, I'm a newbie at openGL. Anyway, I wrote a program in openGL that can display a 3-d part that's made of triangles. But the program would work on some computers, but doesn't work on others. On the computer that it doesn't work on, the part that's displayed become some what wierd, it would not display some of the triangles. So far I can't figure out why it's doing that. And it can't be the version of the Operating system either, because I've tried it on every OS, and wether the program will work or not seems to be random.
Anyone have any idea why it's doing this? Thanks in advance.
|
|
|
|
|
|
I don't understand what you mean? I wrote the program in VS6. Thanks
|
|
|
|
|
visit the mentioned website (NeHe), test with their OpenGL code.
if your bug is gone, it's inside your code + you have a new working base code.
|
|
|
|
|
The problem is, when I load the program on a machine, there's some clipping in my scene, also I implemented a picking routine, which should highlight the triangle I picked. But when I pick the triangle, it will only highlight if I move the scene a little or resize the window, it won't highlight immediately after the mouse click. This only happens on certain computers, not all, on some computers, it works perfectly, the triangle is highlighted immediately after the mouse click. Thanks
|
|
|
|
|
AFAIK, NeHe has a picking tutorial too.
|
|
|
|
|
hello to everybody. Thank you for reading my message. I've got a problem with a ToolTip control. My task is to make ToolTip appeare after clicking(for example) on CListCtrl, or CListBox, and that ToolTip has to contain some info about the item I clicked. I have used some projects from the site, but couldn't settle all my problem (one of I've described). so, if you can please help me with that. Thank you!
|
|
|
|
|
check out my post ! on XP controls ! you might just like the listbox !
multiline with tooltips and editing posibilities !
//rate me or hate me
I am the mighty keeper of the book on knowledge . Contact me to get your copy .
|
|
|
|
|
hi, do you know, how to connect the CVideoRenderer class from \"DirectShow\\Filters\\sampvid\" sample to the IGraphBuilder interface ?
plz, thnx
J.
|
|
|
|
|
Hi, all
How do you request a user to input a string like "cin >> x;" without breaking the current line where the input is taking place, when the user hits the Enter key? So that when you output a string to the console like "cout << x;", the output will be on the same line as the inputed is. Please help
Aidman » over and out
|
|
|
|
|
One solution is std::getline() and a string object.
Kuphryn
|
|
|
|
|
I have already tested cin.getline() but that didn't prevent breaking the line.
Aidman » over and out
|
|
|
|
|
My vertical rebars (from VC6SP5-generated project, only orientation changed) don't stretch its panes (Debug-only) , don't erase background (Debug-only) and mess my status bar (both Debug and Release).
I created the very simple project to show this behaviour, and I will send it for You to experiment (along with a screenshot), just tell me.
Regards,
BB
|
|
|
|
|
Did you call CWnd::RepositionBars() for parent window after orientation was changed?
|
|
|
|
|
The orientation has not been actually changed, the bars have been created vertically. RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, 0); does nothing visible when called at end of CMainFrame::OnCreate .
Regards,
BB
|
|
|
|
|
Hi All,
I want to create a dll (well I actually already started) which creates and writes messages to a .log file. My problem is I need to beable to have any dlls/threads that are called by the application to write into the filelog. What do I need to do to ensure that all the information gets written to the file log? Because If I initialize the file in the Application, But then have a MessageLog call from a dll that has been loaded into the App's memory space, that message does not get written to the log.
I'm not quite sure what to do here. I know it has something to do with the application's memory space and also with Threads and semaphores and critical data.... But I'm not really sure what I need to do.
Any suggestions on this matter are greatly appreciated.
Thanks Alot!
Dan
|
|
|
|
|
It sounds like you should put all the file handling in the log DLL. You should also use mutexes when there can be more than one that calls the logging function.
Cheers,
Fredrik
"Felix qui potuit rerum cognoscere causas."
|
|
|
|
|
check out my winsock hooking article ! you`ll get and idea or two
//read it
//rate me or hate me
I am the mighty keeper of the book on knowledge . Contact me to get your copy .
|
|
|
|
|
Im my ListView control I want to catch the event when an item is selected, or when user selects new item with arrowkeys, or when NO item is selected. This can all be catched with OnItemChanged event, or with the OnItemChanging event.
However, the OnItemChanged event is called THREE times when switching from one item to another. By catching the event with a messagebox, I determined what happens when changing items:
[item0 is selected]
-> User selects item1
-> [1st call OnItemChanged], the itemindex is item0 and no. of items selected is 1
-> [2nd call OnItemChanged], the itemindex is item0, no. of items selected is 0
-> [3rd call OnItemChanged], the itemindex is item1, no. of items selected is 1
[item1 is selected]
I want to display a preview form in my lower CSplitterwnd, which is dependant on the type of selected item. So now, the form updates THREE times, because the OnItemchanged event is called three times. I can reduce it to two times, but this shouldn't be happening at all I think.
The OnItemChanging event is called FOUR times, but that makes sense for this event.
Why is OnItemChanged not called ONE time, AFTER the item is changed?
Should I use another event?
|
|
|
|
|
shoot wrote:
Why is OnItemChanged not called ONE time, AFTER the item is changed?
1. because the first item is changing from selected to non-selected
2. not sure, maybe it tells you when 'nothing' gets selection
3. because the new item is getting selection
you might try testing the uNewState member of the NVLISTVIEW struct and only react when the item is changed to LVIS_SELECTED
-c
Image tools: ThumbNailer, Bobber, TIFFAssembler
|
|
|
|
|
I've used this...
/////////////////
/////////////////
/////////////////
if ((pNMListView->iItem != this->m_iElementSeleccionatAnt) && (pNMListView->iItem != -1))
{
this->m_iElementSeleccionatAnt = pNMListView->iItem;
if (this->m_cLCtrlParametritzacions.GetItemState(pNMListView->iItem, LVIS_SELECTED) == LVIS_SELECTED)
{...
/////////////////
/////////////////
/////////////////
"this->m_iElementSeleccionatAnt" is a static var that holds the last involved item during the last call to OnItemChanged...
Then I check the selection state...
hope this helps...
PS:
Although the above code can help you (at least this is what I expect...)...
I was trying to control some kind of edition in my listCtrl and it was also called several times...
I've finished controlling mouse clicks and enter key in a listctrl derived control... You will be able to control any key press and so on in a derived class...
|
|
|
|
|
Hi,
Does MSDE support Stored Procedures, and... well all that good things that should have a database engine and Ms Access does not have ....
I saw an article from Christian Grauss "GUI tool to help developers use the MSDE database", I saw a comment saying that there were a web tool to manage MSDE but the link now doesn't exist anymore, can somebody point me to that ?
Thanks, Greetings
Braulio
|
|
|
|