|
Hi,
The .dsp and .dsw files are rather easy to understand
but doesn't anyone know where I can find an official
description of the format of VS project and workspaces ?
Thanks!
Phil.
|
|
|
|
|
ouch ... I asked about this recently ... Chris Richardson and Neville Franks provided a lot of help (particularly since I was looking at using the VS Interface to do this - they persuaded me not to .. this applies more to VC6 by the way, the interface is better in VC7)
have a look at http://www.codeproject.com/useritems/IncludeFinder.asp[^]
From Chris >> "The classes you may be interested in will be in DSObjects.h, DSObjects.cpp, VC6Objects.h, and VC6Objects.cpp"
I do have some info I found on using the automation interface - 1 or 2 artciles from the web, but havnt analysed them thoroughly yet - reply back if you want me to dig them out (may take a day or so) ...
cheers, Garth
|
|
|
|
|
ps ..sorry about dyslexia in above .. 'artciles' should of course be 'articles'
dumb fingers/synapses early on a Monday morning !!!
'G'
|
|
|
|
|
Hey, thanks for the plug . I hope your project comparer is going well for you
Chris Richardson
You can stash and you can seize
In dreams begin, responsibilities U2 - Acrobat[^]
|
|
|
|
|
Hello all,
Suppose I want my application can edit a .doc file, so I decide to embed a MS Word ActiveX control into my app. Unfortunately, I can't find one. I only find SpreadSheet ActiveX control comes from Microsoft.
Anyone can give me a way to embed a MS Word into my application?
Thank you very much for your help.
Long Truong
|
|
|
|
|
Hi, me again
I am trying to write a program that loops an input until the escape key is pressed. But how do you put a single char into the input buffer so when the program requests a input the char will be displayed and removable by backspace key? Below is the basic what I have come so far but the problem is that “cin.putback(c);” does neither display the char “c” nor is it removable for the user, when pressing backspace key. I could add “cout << c;” but that only solves one problem, what do I need to do to make the char editable/removable for user when inputing?
char c;
while (1) {
c = getch();
switch (c) {
case 27: // Escape key is pressed
return 0;
case 13: // Enter key is pressed
//...
break;
default: // Some other key is pressed
cin.putback(c);
// Place char c into the input buffer,
// but it won't be displayed nor editable when input requested.
cin.getline(Text, 256);
// request input from user,
// the char c will be included in Text when user has finished input.
//...
}
}
Aidman » over and out
|
|
|
|
|
I used Ms DataGrid to show some data from a table.
the connection is successful,but I failed to change the
value after double-click the cell.
I think maybe the property of the datagrid should be
correctly set ,but I dont know which.
could anyone so kind to help me?
|
|
|
|
|
Hi,
I am using the winldap.h API to query Active Directory for a binary field called objectGUID. I am trying to use the ldap_get_values_len function to do this but am having a few problems. I need to retrieve the data and convert it into base64. I have some example conversion functions but none of them deal with the result from ldap_get_value_len function.
Does anyone have any code that does something similar or can anyone suggest a solution.
thanks
phoenix
|
|
|
|
|
Hi!!
A program allocated memory from heap using new, something like this
int * a = new int[20];
i.e program created ten int objects using heap. Later in the program suppose we only require first ten of these while other are found useless, then how can we delete the objects from int[10] to int[19]
|
|
|
|
|
I dunno if you can delete the last 10 only, but the safest bet is to make a new int[10] and copy the 10 you want into it. Easier, just use std::vector instead.
Christian
NO MATTER HOW MUCH BIG IS THE WORD SIZE ,THE DATA MUCT BE TRANSPORTED INTO THE CPU. - Vinod Sharma
Anonymous wrote:
OK. I read a c++ book. Or...a bit of it anyway. I'm sick of that evil looking console window.
I think you are a good candidate for Visual Basic. - Nemanja Trifunovic
|
|
|
|
|
Hi..
I think it's not possible using new , delete
use malloc , realloc , free stuff to make it (include stdlib.h and malloc.h )or use STL or make a linked list instead of using arrays
|
|
|
|
|
A linked list will have completely different behaviour to a vector/self rolled array wrapper. You need to be careful that this is the sort of behaviour you want ( fast insert, slow lookup )
Christian
NO MATTER HOW MUCH BIG IS THE WORD SIZE ,THE DATA MUCT BE TRANSPORTED INTO THE CPU. - Vinod Sharma
Anonymous wrote:
OK. I read a c++ book. Or...a bit of it anyway. I'm sick of that evil looking console window.
I think you are a good candidate for Visual Basic. - Nemanja Trifunovic
|
|
|
|
|
How to put an icon on a popup menu in application using document/view created by wizard.
|
|
|
|
|
Search on CP you will find very useful articles (BCMenu is one of them)
A. Riazi
|
|
|
|
|
Hi, all
How do you print a text to the right side of a console line? In other words how do you print right aligned text in a console? I do not want to use Windows console function because this process should also work in ms-dos.
Aidman » over and out
|
|
|
|
|
If you assume that each row is 80 columns wide, then pad each row with spaces at the beginning to get the right-aligned effect.
Regards,
Alvaro
Quitters never win. Winners never quit. But those who never win and never quit are idiots. -- despair.com
|
|
|
|
|
but how does this work when the screen size is changed, wich can be done in XP/2000?
And when I try to compile this with VC++ it says:
: error C2065: 'setw' : undeclared identifier
What besides iostream.h do I need to include?
Aidman » over and out
|
|
|
|
|
OK, I think its time we have a discussion about Microsoft's UI as it relates to its new controls in XP. If you were to go Start->ControlPanel you will note a nice collapsable bar on the left side, and a clean right side with a faint image in the background.
The left side bar has kinda been covered on CodeProject in articles:
http://www.codeproject.com/miscctrl/jobwnd.asp#xx395129xx[^]
http://www.codeproject.com/useritems/MenuWithDescription.asp[^]
and
http://www.codeproject.com/cs/miscctrl/collapsiblepanelbar.asp[^]
The last one is by far my favorite, as Derek really did a good job on the look, theming etc. Of course... its in C# which doesn't help me.
Anyways, in my quest to learn more of using these new UI features in XP and the future Windows Server 2003, I am finding it difficult to get the right TERMINOLOGY on what the controls are actually officially CALLED. And I still can't fathem why these controls are NOT accessable programatically to us.
So, would anyone like to start a discussion on:
a) What is the official name of the control on the left side on the Control Panel window? Is there an actual control we can use/get access to?
b) What is the official name of the control on the right side? (Please don't guess and say its just an IE window... Windows Spy isn't able to say everything about the darn thing) If it is simply an HTML control... that is an interesting way to deal with colors and the background. Anyone actually do this themselves?
c) Does anyone have any MSDN references to these controls?
There has been some hacks at this, and I think Derek got the closest. But I wonder why we need to reinvent the wheel here. Is that supposed to be a standard widget in XP? If so... why isn't there any info in VS .NET about it. If it isn't, why not?
I can't justify another MSDN incident to call MS to try to find this out, in case I get another "sorry that information is not available" as I have been getting lately on other things.
This topic seems to be an interesting point for discussion. Anyone like to throw the first electrons into the pot?
- Dana
|
|
|
|
|
Hi,
Does anybody know if there is an easy way to assign a shortcut key to a menu item, and if there isn't an easy way, is there a way that doesn't go through PreTranslateMessage function?
Cheers
Dor
|
|
|
|
|
|
Hello,
I am writing a program that draws a lot of lines (up to about 30000 lines/seconds) and some text (it is a kind of chart).
In order to do this, I am using GDI. I draw everything in a backbuffer and I use BitBlt to copy it to the front buffer (which is the device context of a CDialog on a dialog based VC++ 6 project). The result is that my program is very slow, use a lot of cpu time and slow down when I drag the mouse over it!
Since i want to increase the speed of my code, I would like to use DirectX, OpenGL or something else.
Does anybody know wich one would be the fastest to draw a lot of lines and some text with double buffering, and what would be the approximative gain of speed?
Thanks for your attention (and sorry for my bad english!).
TV
|
|
|
|
|
It sounds like you draw in the backbuffer and blit it to your frontbuffer, as you call it, every time WM_PAINT is called.
If the window is not resized or scrolled, you could just blit your backbuffer to your frontbuffer, without doing all the drawing, because nothing have changed in the view...
I hope you understand what I mean, I might have been drinking too much redvine to explain propely
BTW, if all the lines you are drawing only are horizontal or vertical, it's way faster to bitblt a small bitmap as the line, than using LineTo()...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
Hello,
Actually I am using a timer to redraw every 20 milliseconds my drawing because I am aquiring point from some sensors.
I agree with your remark about vertical or horizontal lines, but it is rarely (never...) the case, I have always non-horizontal nor vertical lines.
|
|
|
|
|
An earlier version of DX will give you DirectDraw, a 2D API which will be much easier to use that OpenGL.
Christian
NO MATTER HOW MUCH BIG IS THE WORD SIZE ,THE DATA MUCT BE TRANSPORTED INTO THE CPU. - Vinod Sharma
Anonymous wrote:
OK. I read a c++ book. Or...a bit of it anyway. I'm sick of that evil looking console window.
I think you are a good candidate for Visual Basic. - Nemanja Trifunovic
|
|
|
|
|
Can I get the number of currently used handles on a Win98/ME system? With XP I use taskman to view it. I'd like to verify on Windows ME how much handles are overall in use, while running my network code (I heard Winsock itself grabs a lot, e.g. for repeated hostname resolutions).
Thanks, Moak
|
|
|
|