|
"Actually, there are no serious issues with having both platforms and IDEs on
the same machine. I have noticed a glitch in creating a Service Setup
project in VS.Net 2003 with VS.Net 2005 installed, but it seems to have no
effect on the end product. However, there is definitely a bug in VS.Net 2005
with regards to creating a Service Setup project that prevents it from being
able to install correctly. I get around that by using installutil instead.
Also note that I've only observed this behavior with regards to Service
Setup projects."--Kevin Spencer,Microsoft MVP
VuNic
|
|
|
|
|
How i can read(write) data from(into) usb port ![Confused | :confused:](https://www.codeproject.com/script/Forums/Images/smiley_confused.gif)
|
|
|
|
|
What about other end of port?
|
|
|
|
|
Soory, what about other end of USB.
|
|
|
|
|
what i dont understand you !!![Confused | :confused:](https://codeproject.global.ssl.fastly.net/script/Forums/Images/smiley_confused.gif)
|
|
|
|
|
Hello.
I am an inexperienced C++ user in need of desperate help. I have to code an application that generates midi notes using a markov chain, play them, and then generate simple visuals to represent these notes. I am really struggling to get started on this application, especially making my alogrithm. Any help, ideas, code, whatever would be greatly appreciated!! Sorry this is a bit vague but i have next to none experience using his language.
Thanks!!!
|
|
|
|
|
Hold you mouse over the 'Articles' menu above here, and select 'Search' when the menu pops up. Then search for 'MIDI', and you will see a bunch of articles to puruse and get your bearings.
Debugging - The high art and magic of cussing errors into 'features'
|
|
|
|
|
Ooooh.
That sounds like a nice touch of sarcasm. Or irony. Or one of those other "wicked humour" things. I never did know the difference.
|
|
|
|
|
Brilliant!!!!! All done thanks alot.
|
|
|
|
|
It wasn't meant that way, honest. With the topic he posted, there is just too much information he needs to grok before he can really get started, and I was trying to get him going in a direction where he could ask a more specific question. He did say 'inexperienced'.
Good luck, ric ric.
David
Debugging - The high art and magic of cussing errors into 'features'
|
|
|
|
|
Ah.
Me, I would probably have gone with the "sarcasm" approach. But then I never claimed to have patience. My wife's a teacher, but I'm too much of a bastard for that.
|
|
|
|
|
For a computer running win2k/xp how can i programmatically find the path to the Windows directory ?
|
|
|
|
|
|
This should get you started:
wString rmw::iniFilePath() {
wString path;
ITEMIDLIST * list;
HRESULT hr = SHGetSpecialFolderLocation(NULL, CSIDL_APPDATA, &list);
if (!SUCCEEDED(hr)) path = TEXT("C:\\");
else {
TCHAR str[MAX_PATH+1] = {0};
if (SHGetPathFromIDList(list, str) == TRUE) {
path = str;
}
}
CoTaskMemFree(list);
return path;
}
You will need to sub std::string for wString, and 'CSIDL_WINDOWS' for the CSIDL_APPDATA, and make a couple other changes.
Debugging - The high art and magic of cussing errors into 'features'
|
|
|
|
|
GetWindowsDirectory()
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
GetSystemWindowsDirectory
Vipin - MVP
|
|
|
|
|
just a clarification.
"The GetSystemWindowsDirectory function retrieves the path of the shared Windows directory on a multi-user system."-msdn.
so does this suit the question?
VuNic
|
|
|
|
|
Another question:
Before calling the dialog, I try to call another function, which has access to the list elements. This function should fill the CListBox. But every time, I will add this elements to the CListBox (using AddString("text")), the program returns a error message. Whats the mistake?
Help!
|
|
|
|
|
hanno25 wrote: the program returns a error message
What message? The message that you get is telling you what is wrong. If you want help you have to let us know what the message is or else all we can do is take a guess.
My guess is that the CListBox window is not yet created when you call AddString() so there is no HWND to handle the LB_ADDSTRING message, resulting in an ASSERTion being thrown in CListBox::AddString().
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
you cannot access your dialog Items before initializing your dialog.
BOOL CMFCDlg::OnInitDialog()
{
}
VuNic
|
|
|
|
|
you may add ur code into initdialog function that insert the elements into the list box
BOOL CTestDlg::OnInitDialog()
{
CDialog::OnInitDialog();
//my code for adding the data into listbox
}
Thanks and Regards
Laxman
FAILURE is the first step towards SUCCESS ![Cool | :cool:](https://codeproject.freetls.fastly.net/script/Forums/Images/smiley_cool.gif)
|
|
|
|
|
Hi,
I would like to know if there is a way to copy partial memory contents(variables) from one structure to another using the memcpy function.
ie
struct TEMP{
int x;
int y;
int z;
};
I would like to copy the struct TEMP except the variable int z, to another struct TEMP?
Thanks
|
|
|
|
|
you could do : memcpy(&destStruct, &sourceStruct, sizeof(int) * 2);
but that's only good if the stuff you want to skip is on the end of the struct.
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
Chris Losinger wrote: you could do : memcpy(&destStruct, &sourceStruct, sizeof(int) * 2);
but that's only good if the stuff you want to skip is on the end of the struct.
It probably works but the code is not safe and portable. The only guarantee is that the first data member and the struct have the same address (no virtual functions involved).
-- modified at 5:18 Sunday 29th January, 2006
A portable solution is:
memcpy(&destStruct, &sourceStruct, offsetof (TEMP, y) + sizeof(int));
|
|
|
|
|
Hi!
I try to fill a CListBox with elements of a CList object. The elements should be listed, as soon as the dialog will be opened. So, I have to do this via "OnInitDialog". But to get access to the list elements, OnINitDialog needs one parameter in his parameterlist.
Does somebody know, how I can overwrite this function?
Thanks a lot, hanno ![Smile | :)](https://codeproject.freetls.fastly.net/script/Forums/Images/smiley_smile.gif)
|
|
|
|