|
The way VSS is integrated in MSDev is more than poor! It's not even possible to do a correct Share-Branch from MSDev and have the links to the new project locations updated automatically... shame on Microsoft.
For your problem, I wrote a small utility one day. It's a simple executable file that you call passing the dsp or dsw file as parameter and all the VSS tags are removed. If you want I can send it to you by email.
Regards
Daniel
|
|
|
|
|
Why not post the code/tool as an article here?
Roger Allen
Sonork 100.10016
I have a terminal disease. Its called life!
|
|
|
|
|
Hi,
I'm looking for a drawing c++ program/source that will enable me to do the following:
1. Draw primitive shapes like points, lines and polygons on a DC.
2. Select those shapes by clicking on them.
3. Move/resize selected shapes around (using the mouse) and also delete them.
I'd be really grateful is someone would please help me with this. I've looked at the MFC drawcli example and it sucks.
Thanks in advance.
Regards,
Tanzim.
tanzim
|
|
|
|
|
Would this be your homework by any chance ?
Christian
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
|
|
|
|
|
|
|
Yeah, you did....
Funny thing is, I KNOW I have code on CP that does half of what he wants, and if he tinkered with it and asked questions, I am one of many here who could easily answer them all. If he just did a bit of work himself I could end up virtually writing it all anyhow, but no way will I sit down and write someones homework for them.
Christian
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
|
|
|
|
|
this->SendTo(static_cast < CCPGrowingList > (m_cpStatisticsToTalkAbout));
Nitron
_________________________________________--
message sent on 100% recycled electrons.
|
|
|
|
|
I have a fortran program (Code as well as exe)
Can I embed this exe in my Visual C++ and compile the C++ code so that
my Fortran exe is fired at the appropriate time?
Is this possible?
|
|
|
|
|
You can spawn any external process (doesn't have to be FORTRAN) from a C++ application. User CRT function _spawnl or Win32 API ShellExecute.
Vagif Abilov
MCP (Visual C++)
Oslo, Norway
Hex is for sissies. Real men use binary. And the most hardcore types use only zeros - uppercase zeros and lowercase zeros.
Tomasz Sowinski
|
|
|
|
|
Yes, with .NET you can.
Christian
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
|
|
|
|
|
Looks like .NET evangelism
How low can you go ? (enculage MS)
|
|
|
|
|
Depending on the Fortran compiler you're using, maybe you can build a DLL and use it from your C++ code. Some Fortran IDEs do have DLL building.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I want to get the bytes received (per second) and bytes sent (per second) of one computer (windows 2000 advanced server) in the network.
The Snmp is forbidden for safety reason. And the best way is get the results from a remote computer with OS of windows. If no way, then find the way of getting the results in the local machine.
I just don't know how to get the results.
Would you please tell how to reach it?
Thank you very much!
|
|
|
|
|
|
Hi, did anybody know how to detect the dialup connected speed?
thanks
|
|
|
|
|
hallo,
i want to paint rectangles, circles, ... and then be able to select each of them, and show its properties in an property window
thank you very much!
|
|
|
|
|
DrawCli (MSDEV Sample).
How low can you go ? (enculage MS)
|
|
|
|
|
oh, thats pretty fine
thank you a lot!
hopefully i will be able to copy and paste the needed functionality! its my first c++ project...
|
|
|
|
|
I am writing an app which manipulates bitmaps, and I am assigning memory to the Pallete and the Bitmap using GlobalAlloc(). The code below runs fine the first time, but the second time (the second time OnNewDocument() is called) I get an access violation in KERNAL32.DLL:
<br />
HANDLE hLogPal;<br />
<br />
hLogPal = GlobalAlloc(GHND, sizeof(LOGPALETTE)+ sizeof(PALETTEENTRY)* wNumColors);<br />
Am i doing something stupid with memory that i don't know about?
The hLogPal gets GlobalUnlock()'ed and GlobalFree()'d at the end of the function so it should be ok, right? and it's local anyway?
I've tried using VirtualAlloc() to see if I can get around it that way but I still have the same problem - besides if it were a lack-of-memory problem, wouldn't GlobalAlloc() just return NULL?
If I surround it in a try{}catch(...){} statement something gets caught but it is not a CException or a unsigned int.
thanks a lot to anyone who can help,
Alex
|
|
|
|
|
Where are you trying to use your hLogPal?
You should be using a HGLOBAL instead of a HANDLE for program clarity, but that is a side point.
Are you locking your hLogPal pointer with GlobalAlloc before you try to use it? because the GHND flag specifies that your memory should be moveable, and it requires to be locked before you can access the actual memory.
Unless you plan on shareing this memory with another process, or you are do some COM work, it may be easier to manage your memory with new and delete.
Good Luck
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
My hLogPal is being used inside a CreateDIBPalette() function (which i think came originally from MSDN). The lines I quoted are fairly near the start of the function, and these lines are the first point at which I do anything with hLogPal.
This function gets called at part of the New Document routine, just after the DIB data has been allocated memory. I only try and lock a pointer to the hLogPal after this step, but it doesn't get that far - the access violation occurs on this line.
how would I manage this using new and delete rather than GlobalAlloc() (not having had a great deal of experience using GlobalAlloc() in the past i am unsure of the exact mechanics)? It sounds like this would be the best idea (I am not doing any COM or multi-process work). As I am at work at the mo I will fiddle with it when I get home.
Thanks a lot Paul - i'll have another look and get back to you.
-Alex
|
|
|
|
|
Nope. no joy.
main problem seems to stem from the fact that i'm using DIB's (really, really irritating). To create a new palette I need to create a new CPalette (which i'm doing) and then attach an array of PALETTEENTRY's, after first attaching them to a LOGPALETTE. Problem is - i need to allocate these with GlobalAlloc() (new just won't compile).
Do you think that this is a symptom of an invalid pointer somewhere else. Same app - Get access violation at the same address when I try to display a CFileDialog.
Cheers, Alex.
|
|
|
|
|
Hi!
I develop WIN32 software that uses MySQL database. My software uses MySQL
ODBC driver 3.51 and ADO interface. MDAC 2.7 is installed. My problem is
that while I'm trying to update MySQL record contained char(15) field, I get
an error "Microsoft OLE DB Provider for ODBC Drivers Multiple-step OLE DB
operation generated errors. Check each OLE DB status value, if available. No
work was done." I don't have such problem with numeric fields. The numeric
fields are updating normally with the same code.
Here is a sample of my code:
try
{
_RecordsetPtr pRecordset;
HRESULT hr;
_bstr_t btmp;
hr = pRecordset->Open(vTable, vConnection,adOpenForwardOnly,
adLockOptimistic, adCmdTableDirect);
hr = pRecordset->AddNew();
...
pRecordset->Fields->GetItem(L"id")->Value=btmp;
...
pRecordset->Fields->GetItem(L"proto")->Value=btmp;
...
pRecordset->Fields->GetItem(L"src_ip")->Value=btmp;
}
The fields "id" and "proto" are numeric, the field "src_ip" is char. And I
get the above error while updating the "src_ip" field. Do you have any
ideas? Can you help me?
Yours sincerely,
Alex Bash
|
|
|
|
|
You should check individual error values to find out why it fails. OLE DB throws an array of errors using IErrorRecord interface. You should check them:
if( m_adoConnection->Errors->Count > 0 )
{
for( long iError = 0; iError < m_adoConnection->Errors->Count; ++iError )
{
ErrorPtr adoError = m_adoConnection->Errors->Item[iError];
// Do something with the error
}
}
Vagif Abilov
MCP (Visual C++)
Oslo, Norway
Hex is for sissies. Real men use binary. And the most hardcore types use only zeros - uppercase zeros and lowercase zeros.
Tomasz Sowinski
|
|
|
|