|
You can use that CD sepratly from VC6
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
Hi,
I'm not sure if this is part of DirectX, or if there's a standard set of code available - but how can I make something that does audio configuration? For example the latest Counter-Strike now supports voice (actually I think it's a Half-Life update) and you can test your microphone settings, etc... I've seen very similar functionality in other places as well such as Dragon NaturallySpeaking (a while ago).
Anyone have any ideas?
Thanks
Jedidja
|
|
|
|
|
Hi
i have 2 tables. my first CRecordView table displays the first table information. I have one button control on the first Dialog(CRecordView).
If i click the button i has to open one more dialog(which has combobox) and load the records from the second table. How i ll go for this? plz help me out. I am doing thru appwizard..
Thanks in advance
Saro
|
|
|
|
|
You can create dialog in your resource tab(you don't need to have CRecordView for it,regular dialog box is enough),then in OnInitDialog() of that dialog you can read table2 and add the item to combobox.
Have you got it or you need more?
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
1.
Does anybody has the FILE aclui.h ??
If you do, please send me the file!!
2.
The Interface IADsSecurityUtility for ADSI isn't implemented in iads.h and nowhere else! Does anybody know where i can find it???
|
|
|
|
|
hph wrote:
Does anybody has the FILE aclui.h ??
The file is part of the platform sdk, you'll need to have the sdk installed to get this file.
hph wrote:
The Interface IADsSecurityUtility for ADSI isn't implemented in iads.h and nowhere else! Does anybody know where i can find it???
The interface appears to be defined in the iads.h with the August 2001 platform sdk
Michael
|
|
|
|
|
Hello,
Does anybody know how to build a networked application in a SDI? I've got a good example on how to build the application using simple dialog(I've found it on "MFC programming with Visual C++ Unleashed"), but I want to build a networked application(using WINSOCK connection; CAsyncSocket class) using SDI or MDI.
The problem here are that I don't know whether the socket variable is belongs in the document or view class and how much of the application functionality belongs in which 2 classes.
Please help
|
|
|
|
|
Hi,
Probably your best best here is to use a CFormView-derived class for your view. This acts pretty much exactly like a dialog, so you'll be able to easily move your example code over.
As for Doc/View, I think the proper philosophy is that your persistent data (stuff that gets loaded and saved) goes in your document, and your view is the class that presents that data to the user. Thus, in MDI you can potentially have two views on the same document data.
------------------------
Derek Waters
derek@lj-oz.com
|
|
|
|
|
I have a function that has a return type of const char*, and the data inside the function is built up into a temporary std::string. I try returning "return temp.c_str();", but that doesnt seem to work the way it should. This is a simple problem, and I really dont want to allocate memory for a char* unless it is absolutely necessary, so is there a better way to handle this?
|
|
|
|
|
Data accessed via c_str() become sinvalid as soon as the temporary string goues out of scope. You need to maintain that string somewhere: declare it as a member of some object, or have it as a static variable in your .cpp file (this can pose problems is the string changes in every invokation.)
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thats what I figured.... I wanted to avoid having memory overhead, but I guess I will stick with it.
|
|
|
|
|
If you want to avoid memory overhead, they why are you using std::string?
Tim Smith
I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
|
|
|
|
|
|
could we see the body of the function? Maybe you could try something like:
std::sting myfunc() {
....
return std::string(somebuforwhatever);
}
Just a thought
Michel
If I am wrong or said something stupid, I apologize in advance
|
|
|
|
|
Returning std::string by value will cause one or two memory allocations for the contents of buffer - two if your compiler doesn't support so-called 'return value optimization'.
Please note that this is not a problem, unless 'myfunc' is time-critical function. Don't fool yourself into thinking that you need to worry after one or two nanoseconds. Try to save cycles where it really matters.
If you absolutely need to reduce the overhead, you may consider changing the function header to accept std::string reference instead. Instead of returning string, you'll be using operator= at the end of the function.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
I want to write a vertical text on my DC , something similar to what Office2K menu bar shows a vertical text when these menubar are docked on left or right edge of the window.
How do I do that ??
Abhishek Narula
"Learn to appreciate others ... World would appreciate you"
|
|
|
|
|
use \n in your string,like:
"H\ne\nl\nl\no"
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
Thanks but this would not serve the purpose !
See Lets say I want to write ABC vertically ..
according to your solution output would be
A
B
C
but what I want is thought all the characters would be appearing in different lines but give 90 degree clockwise shift to them , as if you are reading the screen from left edge . did you get this ??
Abhishek Narula
"Learn to appreciate others ... World would appreciate you"
|
|
|
|
|
Abhishek Narula wrote:
did you get this ??
No,I don't get it,Could you put an example here?The output you want to see on screen.
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
Thats the Irony .. I cant show you that ..
look at the following URL , you ll understand ..
http://www.codeproject.com/staticctrl/rotated_bevel.asp
Abhishek Narula
"Learn to appreciate others ... World would appreciate you"
|
|
|
|
|
So you got your answer,don't you?
Mazy
"So,so you think you can tell,
Heaven from Hell,
Blue skies from pain,...
How I wish,how I wish you were here." Wish You Were Here-Pink Floyd-1975
|
|
|
|
|
Hans Bühler's article A bevelline with horizontal and vertical text presents a class that outputs vertical text. Maybe you can investigate its source code to find out how it's done.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Check the nOrientation parameter of CreateFont.
Atul
Don't they know that java is slow.
|
|
|
|
|
Thanks .. I have not tried it as yet . but I think this would surely serve the purpose.
Abhishek Narula
"Learn to appreciate others ... World would appreciate you"
|
|
|
|
|
Hi everybody,
I'd like to display a a small bitmap inside an edit control (in my special case i want to show an greek omega). Does anybody has clues how to solve this ?
Thanks a lot
Mike
|
|
|
|