|
Hi
I'm writing COM add-in to MsProject2000. The problem is that using Project object I cannot change cursor that appear in MsProject app. I tried to change the cursor by WinAPI (unfortunately in this case CWaitCursor can't be used) calls but I failed. Is this possible to change cursor in MsProject by executing some code from my add-in?
Mariusz Popiolek
|
|
|
|
|
we know how to use menu, but ...
someone knows more.
see menu on vc++, it is something - at least i don't know.
if u know that or else, pls give me a clue or link, i need it.
thx.
includeh10
|
|
|
|
|
Yep, we've all been there !
Max.
|
|
|
|
|
HAHAHAHAHAHAHAHAHAHAHAHAHAHHAHAHAHAAHHAHAA !!!!!
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
What are you talking about?
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Rickard Andersson wrote:
What are you talking about?
Thats the exact same thing I was wondering!
Regards,
Brian Dela
|
|
|
|
|
Come on Brian, it's a random post generator. Quite nice at the mo, sentences are almost natural.
How low can you go ? (MS rant)
|
|
|
|
|
funny guys, don't display ur poor knowleges on my poster.
vc menu is one u can drag-drop buttons and menu-items on it, are u there?
keep study for 20 years then say something, otherwise waste people's time.
includeh10
|
|
|
|
|
I may be wasting your time, but YOU are wasting the time of everyone here.
You don't react in an adult manner. Come with accurate questions, and we are ready to take our time to answer you.
Other than that, improve your english. We cannot understand you.
How low can you go ? (MS rant)
|
|
|
|
|
if u don't understand the Q, go back to read it again, i think u understand now.
if u even don't know vc menu is different from normal menu, as i said: u are very poor.
go back read all replies one by one, who is in adult manner?
i post the Q for my job, not for kidding.
if u think replies are in adult manner, here may be an adult club.
i am waiting for help (from top c++ programmers, not at ur poor level), but when i read replies in words of ur adult club, i am angry.
don't type anything on the forum except u sure u can help.
see, one funny reply is:
HAHAHAHHAHAHHAHHAHAHHAHAHHAH!!!!!!!
includeh10
|
|
|
|
|
includeh10 wrote:
i post the Q for my job, not for kidding.
This we all probably agree on. But the initial question at the start of this thread was incredibly vague. You have since provided enough information about what you want to achieve.
Some of the replies to you were just in response to the vagueness of your question. The more information that you provide in the question the better. Look back at your question and assume you didn't know what you were asking about and see whether it makes sense to you.
As for Christians HAHAHAHHAHA. A bit out of order, but he is a very good c++ programmer. He also has had experience in this area as he did something along these lines for the XT toolkit at www.codejock.com, but which they didn't use in the end. (which is a shame, as I use the XT toolkit in my projects).
You wanted to know about drag n drop / tear off buttons / menu items etc.
This is a very big and complex topic. There used to be an article on it here at CP (BCGLibrary), but which has since gone commercial and the code is no longer available. The best bet would be to start from one of the owner drawn menu articles and try and add the required functionality from there, but its a big and difficult task.
As I say, this is not a samll problem it could take months to get something working, or you could use any of the commercial libraries that provide this, but they cost $/£'s
You can find advertisements for them here at CP.
Good luck.
Roger Allen
Sonork 100.10016
I have a terminal disease. Its called life!
|
|
|
|
|
don't show me ur poor knowledge again: vc menu is based on CControlBar, not such owner-draw as u guess.
don't scare urself say "This is a very big and complex topic", i work on it for only one day, basically it works already.
don't tell me "Christians is a very good c++ programmer", i checked his replies yesterday, most of them are guesses plus mistakes, definitely not from an experenced c++ place.
don't sound as a teacher on this forum, u don't know who u r talking with, u never realize that a lots of people here are much better than u.
includeh10
|
|
|
|
|
I'm trying to display a bitmap in a Dialog and I've created a static control named IDC_PICTURE. I added this through the resource editor and placed it in my dialog and associated a picture. The picture shows up fine when i run my program. What i want to do is change the picture during the program to a different bitmap. I added the second bitmap to the resource list (right under the first one) and I'm trying to figure out how I can get control over which bitmap is displayed. Usually, I work with simple edit boxes and I do the following to gain control over them.
CWnd * pWnd = GetDlgItem(IDC_BYTE0);//where IDC_BYTE0 is an edit control
pWnd->ShowWindow(SW_SHOW); // i use this to control it, in this case to make it show instead of hidden.
I want to do this:
CStatic *pPic = GetDlgItem(IDC_PICTURE);//where IDC_PICTURE is the static control of type picture
so i can do this
pPic->SetBitmap(IDB_BITMAP2) //where IDB_BITMAP is the first one and IDB_BITMAP2 is the second picture
This code doesn't compile because GetDlgItem returns a CWnd type pointer.. but how do i get the pointer I need to use the CStatic functions?
Thanks
Jeff Rothenberg
Project Engineer
Vector CANtech, Inc.
|
|
|
|
|
<br />
CStatic* pWnd = static_cast< CStatic* >( GetDlgItem( IDC_BYTE0 ) );<br />
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
Just cast it to CStatic :
CStatic *pPic = (CStatic*)GetDlgItem(IDC_PICTURE);
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
|
|
|
|
|
Anyone knows any good way to do that? I have a (raw-formatted) XML file and I need to build ADO recordset from it. The last resort would be parse the XML file and build the recordset from scratch
Hope there is a way to use the XML file as data source.
Thank you.
|
|
|
|
|
Unfortunately no, there is no such thing, unless you use ADO.NET
There is quite a bunch of Xml readers here in the SOAP XML section, I guess it shouldn't be that hard to reuse one of them, especially if the Xml content is simple (no deep use of namespaces, etc.).
How low can you go ? (MS rant)
|
|
|
|
|
I know ADO has a way to write out a recordset as XML. One would think it could read in an XML dataset as long as it conformed to some schema structure.
If you want to load the recordset to insert this data into a database, then you could consider transforming (XSLT) the XML to generate a file, that will be in the correct format for sqlloader or BCP. Lesser XMLDoc parsing code inside your application then.
|
|
|
|
|
I am trying to restore a registry key by using the RegRestoreKey. I keep getting an ERROR_ACCESS_DENIED (return value 5) from the function.
I have ensured that I have the SE_RESTORE_PRIVILEGE.
Here is my code. Any help would be appreciated.
<br />
<br />
<br />
HRESULT ModifyPrivilege(<br />
IN LPCTSTR szPrivilege,<br />
IN BOOL fEnable)<br />
{<br />
HRESULT hr = S_OK;<br />
TOKEN_PRIVILEGES NewState;<br />
LUID luid;<br />
HANDLE hToken = NULL;<br />
<br />
if (!OpenProcessToken(GetCurrentProcess(),<br />
TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY,<br />
&hToken ))<br />
{<br />
printf("Failed OpenProcessToken\n");<br />
return -1;<br />
}<br />
<br />
if ( !LookupPrivilegeValue( NULL,<br />
szPrivilege,<br />
&luid ))<br />
{<br />
CloseHandle( hToken );<br />
printf("Failed LookupPrivilegeValue\n");<br />
return -1;<br />
}<br />
<br />
NewState.PrivilegeCount = 1;<br />
NewState.Privileges[0].Luid = luid;<br />
NewState.Privileges[0].Attributes = <br />
(fEnable ? SE_PRIVILEGE_ENABLED : 0);<br />
<br />
if (!AdjustTokenPrivileges(hToken,<br />
FALSE,<br />
&NewState,<br />
sizeof(NewState),<br />
NULL,<br />
NULL))<br />
{<br />
printf("Failed AdjustTokenPrivileges\n");<br />
hr = -1;<br />
}<br />
<br />
CloseHandle(hToken);<br />
<br />
return hr;<br />
}<br />
<br />
<br />
HRESULT hr;<br />
hr = ModifyPrivilege(SE_RESTORE_NAME, TRUE);<br />
<br />
CRegKey regkey;<br />
CString sRegFile = "MyFile.reg";
<br />
regkey.Open(HKEY_LOCAL_MACHINE,"SOFTWARE");<br />
lRet = RegRestoreKey(regkey.m_hKey,sRegFile,REG_NO_LAZY_FLUSH);<br />
.<br />
.<br />
.<br />
<br />
<br />
Any help would be greatly appreciated.
Thanks
ashish
|
|
|
|
|
Look over Microsoft's specification of RegRestoreKey(). Maybe you left something out.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/regrestorekey.asp
Kuphryn
|
|
|
|
|
Editted: for better understanding, I suggest one read the MSDN-Q237870 before continue
Hello all,
We've here automated build-scripts (Batch files and also 4NT batch-files) that creates user environment at a central (build)server. One of the scripts also executes NMAKE <makefile> in order to build the application.
Problem:
Within the scipts I've the variable MAJOR_VER, MINOR_VER and BUILD_NR. I would like to pass these with NMAKE in such way that I can use those variables (Macro's) to fill in the VERSIONINFO-resource: the file + product version entires. This structure is already moved to .RC2-file so its in our control.
When manually define them in a header-file and include this in RC2-file (as mentioned in MSDN: Q237870) this works.
But...
I want to pass this info via batch-file (NMAKE), iso calling a script which modifies a headerfile. Anyone suggestions?
Thanks in advance,
EiSl
|
|
|
|
|
For some reason, my C:\Program Files\Microsoft Visual Studio\VC98\MFC\LIB directory disappeared yesterday.
This is somewhat of a problem as I can't compile my programs anymore
Now, my biggest problem is that my Visual C++ cd is in Europe and I'm in the Carribean at this moment.
You might say: hey, what's the problem, go and enjoy the beach and the sun and forget about programming but I should really appreciate it if someone can send me a zip file with the contents of C:\Program Files\Microsoft Visual Studio\VC98\MFC\LIB (with mfc42d.lib, ...) to wjans@aqualectra.an?
I'm using Visual C++ 6.0 by the way.
Thanks in advance.
Wim
|
|
|
|
|
Are you sure you can handle such e-mails?
I've checked, but the LIB-directory is 43MB in size (at my PC), and ZIPing won't make it much smaller.
Cheers,
EiSl
|
|
|
|
|
Hi,
Hmm, I didn't realise it was this huge.
Is it possible for you to put it on a website or something like that so I can ftp it?
The zip file is just for easyness, so I have all the files in one cabinet
Thanks!
Wim
|
|
|
|
|