|
Do you have multiple projects in your workspace? If so, make sure your main project is the active project, otherwise F5 will try to run the library project (i've had that issue before). If everything looks fine, and just no response, I'd try the good 'ol reboot. Thats all I can think of
Nitron
_________________________________________--
message sent on 100% recycled electrons.
|
|
|
|
|
Any one has a binary multiplication c++ code? Thanks.
mIchAel Liu
__________________________________________________________
The secret of business is to know something that nobody else knows.
|
|
|
|
|
I need to find a free source code that implements
and manages a deeply customizable flex grid control.
I have to insert that code in an application that
I have to sell.
Does someone know if (o where) I can find it ??
Thanks a lot.
|
|
|
|
|
http://codeproject.com/miscctrl/gridctrl.asp[^]
I don't know if you can use it for sell or not.
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
For int value, in debug mode, i can add trace in code like
TRACE1("The value is %d", ival);
However, if the type is __int64, how can i trace it to output window ?
thanks
|
|
|
|
|
TRACE("%I64d", yourvariable );
Pavel
Sonork 100.15206
|
|
|
|
|
hello together,
i need information, how i can estimate permissions of the user at the computer. background: i have a program, which has to inform the user, that he has to have administator persmissions to run the selected function. i use vc++6.
hope you can help me.
ciao,
f.o.b
|
|
|
|
|
Use GetUserName and LookupAccountName to get current user and its SID.You can use this SID to find permission of that acount but I'm not sure how you can find out if it is admin or not.
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
thx for the information. i will check it out.
ciao
f.o.b
|
|
|
|
|
i have implemented your idea and i get a sid of
S-1-5-21-436379069-...
21 means 'SECURITY_NT_NON_UNIQUE'. i guess this is the reason why the fourth number has a seldom number.
i not sure but i think this is not the correct way for me.
ciao,
f.o.b
|
|
|
|
|
I found an article that I think will help you.Check this article in MSDN:
Q118626
HOWTO: Determine Whether a Thread Is Running in User Context of Local Administrator Account
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
thx for your effort.
Together with another article i get the solution.
thx a lot.
ciao
f.o.b
|
|
|
|
|
f.o.b wrote:
Together with another article i get the solution
Can I ask which article?
Mazy
"If I go crazy then will you still
Call me Superman
If I’m alive and well, will you be
There holding my hand
I’ll keep you by my side with
My superhuman might
Kryptonite"Kryptonite-3 Doors Down
|
|
|
|
|
You will find it under:
http://www.codeproject.com/useritems/collectsid.asp
thx for your help.
Ciao,
f.o.b
|
|
|
|
|
hello,
i'm stuck in a problem with IShellView. here's my story :
i've implemented an IShellBrowser to make a file explorer holding to the windows one. problem : the THUMBNAILS display (only in windows 2000 and later).
when i switch to THUMBNAILS display, all is right, except when i change to another directory : the THUMBNAILS display isn't kept. nevertheless, i've been careful in saving the FOLDERSETTINGS of IShellView, and moreover, thanks to it, the "large icons" display, the "small icons", the "list" and the "details" ones are well and truly restored when i visit another directory. only the THUMBNAILS display is lost when the directory is changed.
why ? how to keep the THUMBNAILS display ? where is this parameter stocked if it isn't in FOLDERSETTINGS ?
|
|
|
|
|
i've made a test with SetWindowsHookEx to capture keyboard messages to MY OWN APPLICATION. it works, except the fact that the hook doesn't hook anything else when i use the keyboard in another application. when i switch back to my own application, the hook doesn't hook my keyboard inputs anymore.
why ? how to solve the problem ?
here is how i create the hook :
HHOOK hookdata;
hookdata = SetWindowsHookEx( WH_KEYBOARD, KeyboardProc, hInstance, 0 );
and here is my callback function :
LRESULT CALLBACK KeyboardProc ( int code, WPARAM w, LPARAM l )
{
MessageBox( g_hWnd, "KEYBOARD", "HOOKED", MB_OK );
return 0;
}
|
|
|
|
|
its because ur breaking the hook chain
Papa
Murex Co.
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
no that's not the problem, but it's ok now. i've found the solution :
hookdata = SetWindowsHookEx( WH_KEYBOARD, KeyboardProc, hInstance, GetCurrentThreadId() );
|
|
|
|
|
how to convert from c style char string to bstr.I am going to use it in win32 application.so i want the appropriate macro.May be some macro will work in ATL classes.
|
|
|
|
|
You can use _bstr_t class to manipulate BSTRs. See MSDN.
Pavel
Sonork 100.15206
|
|
|
|
|
There are a whole bunch of conversion macros. You will have to look up MSDN for which one you need. Searchfor A2W, A2OLE, USES_CONVERSION. You should be able to find the right macro. Or alternatively use the _bstr_t class.
|
|
|
|
|
|
Kinda new to MFC and I got what will probably be a simple question for everyone to answer. In regards to property pages and tab pages, do the controls that you put on them have to be created at runtime? I know with just a simple dialog I can use the resource editor to add controls at design time but I'm not sure how to do it with property pages and tab pages.
Thanks for the help.
- Monrobot13
|
|
|
|
|
monrobot13 wrote:
do the controls that you put on them have to be created at runtime?
No, you can work with your CPropertyPage derived classes like with CDialog derived ones. Use wizard to add property sheet with pages to your project: in VC6 menu select Project/Add to project/Components and Controls, then go to Visual C++ Components, select Property sheets and press Insert.
Pavel
Sonork 100.15206
|
|
|
|
|
-> First of all excuse my English
-> My answer:
You can, but you don't have to,
You have to create the property pages (tabs) and the property sheet (tabs recipient) separately.
In order to do that, you must create the property sheet class:
1. Menu insert -> new class.
2. Type the new class name.
3. Select the CPropertySheet base class.
Now you have the property sheet created, but this won't have any tab (property page).
To create pages (PropertyPages) you will have to:
1. Create a dialog resource (a normal dialog)
2. in the dialog properties select:
2.1. (Tab styles) Style = child
2.2. (Tab styles) Border = thin
2.3. (Tab styles) checked Title Bar (the other options in this tab must be unchecked)
3. Doubleclick the dialog (in order to create a new class for it)
3.1. Write the new name of the class.
3.2. Select the CPropertyPage base class.
Now you have created a property page and a property sheet, you can create all the property pages you want. (Surely there will be a limit of property pages, I don’t know it…)
Now you have to insert the property pages to the property sheet.
In order to do that:
Make sure that you have included the header files of the PropertyPages in the header file of the Property Sheet:
<br />
#if !defined(AFX_PSPARAMETRITZACIONS_H__8CB4FA88_5A89_4479_A479_4734680B1775__INCLUDED_)<br />
#define AFX_PSPARAMETRITZACIONS_H__8CB4FA88_5A89_4479_A479_4734680B1775__INCLUDED_<br />
<br />
#if _MSC_VER > 1000<br />
#pragma once<br />
#endif // _MSC_VER > 1000<br />
<br />
#include "PPDlgParametritzacions.h" <br />
…<br />
And you should add a PropertyPage variable for each PropertyPage that you want to add:
CPropertyPageClassThatYouWillHaveAdded m_CPPCTYHA;
In the constructor of the Property sheet class you should add the PropertyPages:
this->AddPage(&m_CPPCTYHA);
And that’s all…
(Just kidding…)
You will need to call the Property sheet:
In order to do that:
You should include the CMyPropertySheet class (header file) to the header file of from where you want to include the property sheet call.
Add a variable of the type CMyPropertySheet in the same class (dialog or xxx) from where you want to call the property sheet:
CMyPropertySheet m_MyPropertySheet;
(In order to try it you can create a CButton in a dialog) and in its click event you can call
m_MyPropertySheet.DoModal();
Hope this helps...
Its possible that I have done a typing error or that I have missed something, if this don't works, email me (or try it by yourself...).
|
|
|
|