|
Ok, I got it to work, but I had to move the kernel32.lib from its normal directory into the directory where my project is. I must need to set the path somewhere.
Roj
-- modified at 1:29 Saturday 22nd July, 2006
|
|
|
|
|
Hi,
I'm writing a Windows Service in C++ (no .NET) and I need this service to start in Safe Mode w/Networking automatically, like the services.exe services (DHCP Client, Workstation, etc). What I have works fine in normal mode, but I can't even manually start it in Safe Mode (Error 1077)... not that it would do me any good manually - I need the service to start before login (and before clicking OK on the "Windows is in Safe Mode" messagebox). There has to be a way to do this, but I can't seem to find it on MSDN.
|
|
|
|
|
Only system services start up in safe mode ... and for good reason. You won't find a way around the security measures on MSDN. Safe mode is suppose to be used when something needs to be fixed ... which means, you don't want third party software running while fixing the OS.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
I found the code but it is in C#. I tried to convert to VC++ in .NET but I was getting error for the following:
"tview.Nodes[k]" The error is in Nodes[k]. Can anyone please let me know how to solve it.
The code I got in C# is below:
<br />
{<br />
TreeNode temp = new TreeNode();<br />
<br />
for(int k=0; k<tview.Nodes.Count; k++) <br />
{<br />
temp = tview.Nodes[k];<br />
<br />
MessageBox.Show(temp.Text);<br />
<br />
for (int i = 0; i < temp.Nodes.Count; i++)<br />
visitChildNodes(temp.Nodes[i]);
}<br />
Any other sugesstions for how to traverse all the nodes in a treeview using VC++ .NET will be appreciated
|
|
|
|
|
Here's some actual code:
void CTreeTestDlg::WalkChildren(HTREEITEM hItem)
{
while (hItem != NULL)
{
OutputDebugString(m_treeCtrl.GetItemText(hItem) + _T("\n"));
if (m_treeCtrl.ItemHasChildren(hItem))
WalkChildren(m_treeCtrl.GetChildItem(hItem));
hItem = m_treeCtrl.GetNextSiblingItem(hItem);
}
}
void CTreeTestDlg::OnClickedWalk()
{
WalkChildren(m_treeCtrl.GetRootItem());
}
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Hi,
I want to change my project name .Can I change my project name after creating it?
Cyber Friend
|
|
|
|
|
Yes, but it's fairly tedious. I always find it easier to just create a new project.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
Hi,
This link is not working .Can u provide some other link ?
Regards.
Cyber Friend
|
|
|
|
|
Hmmm..
Just tried it and it worked.
I also tried typing in vsrename in the SEARCH box at top and it
comes up with the same valid link???
Roy
|
|
|
|
|
Hi,
Ya it worked n i have used this utility. Its fantastic utility. When anyone uses this utility then dont forget to remove spaces from the path of poject being renamed.
Best Regards.
Cyber Friend
|
|
|
|
|
Yes , It is possible but you should consume about 20 minute .
1 - del Debug and Release folders .
2 - get back up of your prj .
3 - click --> Start->Serach-> ... and search your prj name .
4 - rename all files were found to new prj name.
5 - type prj name in "Containing text" edit box of Search window and empty "Search for files or ..." on that window
6 - Open all file that found in notepad and serach prj name int it and change it to new prj name .
I changed prj name with this way more times .
-- modified at 1:58 Saturday 22nd July, 2006
|
|
|
|
|
Hiya there everyone... In Visual Studio 6 i used to be able to press CTRL + W to bring up classwizard. Then i could click on a class ( A CDialog dervied class for exampe ) in the workspace and it would bring up all the message handler that i could double-click and the Visual studio would create a skeleton function for me.
Im aware that ClassWizard is defunct with regards to Visual Studio 2005 but i was just wondering if there is any way for me to bring up a all the message handlers that are associated with a class beause im going around the bend at the moment trying to remember my Message map handlers
cheers!
|
|
|
|
|
I can't remember if it is still there for 2005, but in 2003 it is no longer a wizard, but instead is a docking window (VB-style) that sits below your solution explorer.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
Zac Howland wrote: I can't remember if it is still there for 2005, but in 2003 it is no longer a wizard, but instead is a docking window (VB-style) that sits below your solution explorer.
Yes it is a docking window in VS2005.
Click on View in your menu.
Then select "Class View"
It should then pop up and you can dock it.
or do: Ctrl+Shift+C
Kitty5
|
|
|
|
|
Does this help?
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
thanks everyone.. im rocking & rolling now
|
|
|
|
|
hmmm... So ive got class view up!. I click my CDialog derived class. Then it says "In the Properties window, click the Messages button." - The Properties window is the next tabbed window along but i cant see the "messages" button! - Ive tried clicking on the source and the class name but im not finding it! - am i being a dunce or.........
|
|
|
|
|
Hello there,
Sorry if this is the wrong forum for this question, but I couldn't decide which one to use.
I'm wanting to use Eclipse as a development environment for my C++ project (as I need to be able to easily port between Windows and Linux, it seems to be a good choice). I've successfully been able to compile a simple program with Eclipse using the gcc compiler via Cygwin. This means that I've got things set up for porting to Linux. I'd now like to be able to have my programs run on Windows independent of Cygwin, thus be able to compile for Windows and for Linux with Eclipse, simplifying porting to different systems.
Does anyone know of a plug in for Eclipse that would allow me to use the Visual Studio Compiler, or another Windows compiler that doesn't require Cygwin?
Thanks for your help.
Patrick
|
|
|
|
|
pgav wrote: Does anyone know of a plug in for Eclipse that would allow me to use the Visual Studio Compiler, or another Windows compiler that doesn't require Cygwin?
You can check the Eclipse plug-in repository (can't find the URL at the moment otherwise I would post it), but I doubt you will find anything like that in it.
A better solution for you might be to organize your project as follows:
ProjectDir
- source dir
- linux development (IDE files)
- windows development (IDE files)
Then you just have to make sure if you make changes to the project settings in one side, you also do it for the other side (you can write scripts or macros to do that for you if you really want to).
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
-- modified at 11:22 Friday 21st July, 2006 ... apparently the "pre" button isn't working today?
|
|
|
|
|
hi all ,
I have a dialog box application.I want to remove the cancel button at the top right of a dialog box.Can anyone pls. tell me how to do it.
|
|
|
|
|
Have you considered removing the WS_SYSMENU style?
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
do in the resource editor, select your dialog box, once it's openned, select the "Cancel" button and press the delete key on your keyboard.
|
|
|
|
|
The "cancel" button he is referring to is the "X" in the top-right corner of the dialog.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Do the following:
Open the dialog box resource from the resource window in the workspace pane. Right click once you are on the dialog box and open properties. On the 'sytles' tab uncheck the system menu. That should do the trick.
|
|
|
|