Answer Questions
jm2320 HOW TO MIX THE AUDIO WITH DirectX?
HOW TO MIX THE AUDIO WITH DirectX Here are some related links that might be helpful: http://msdn.microsoft.com/archive/default.asp url=/archive/en-us/dx81_c/directx_cpp/htm/_dx_using_directx_audio_dxaudio.asp http://msdn.microsoft.com/archive/default.asp url=/archive/en-us/dx8_c/directx_cpp/audio_front_3qgf.asp For more info or details, please try posting on the DirectX Audio forum at http://forums.microsoft.com ...Show All
dev-one how to find the size of an array
Dear all, I have an array of integers defined in a file. Bu I want to use that array in another file. I want to find the size of the array. The code is : // file1.cpp int array[] = {10, 20, 30, 40}; ------------------- //file2.cpp extern int array[]; main() { for(int i = 0; i < (sizeof(array)/sizeof(int)); i++) cout << array << endl; } There is no ...Show All
StringMon Is it possible to use sgi hash_map in vs2005?
Is it possible to use sgi hash_map in vs2005 without conflicting existing hash_map How to do it I want to let this code work, which is an sgi example: struct eqstr { bool operator()(const char* s1, const char* s2) const { return strcmp(s1, s2) == 0; } }; int main() { hash_map<const char*, int, hash<const char*>, eqstr> months; months["january"] = 31; months["february"] = 28; months[&quo ...Show All
torerik Visual Studio 2005 MFC Applications on Windows 98
Hi, I am tring to build a unicode app to work on win 98/nt/xp. Built a sample MFC application in Visual Studio 2005 Team suite Beta 2. A unicode dialog app with a button. When run on windows 98 it shows this message. Installed VCredist_x86 and .NET framework 2.0 latest versions downloaded from web. Also coped mfc80u.dll to the exe folder. Microsoft Visual C++ RuntimeLibrary Runtime Error! This application has requested the runtime to te ...Show All
Prabu.P Date time stamp can't be this difficult
Hi, I'm writing what should be a simple program to auto-edit a text file. If an error occurs, the program makes an entry in an errlog file which should include an date/time stamp. Unfortunately, I can't figure out how to do it. I started in namespace std and included <string>. I found <ctime> but as I struggled to make it work, I received warnings that it was deprecated. After some digging, I found DateTime, which r ...Show All
Smurfy Failure to rebuild after .hpp files are modified
I've just installed the released version of Vsiual C++ 2005 Express after being a beta user for months. I used the uninstall tool and the installation went smoothly, but I find that now projects don't always get rebuilt when they should. I'm not using explicit makefiles or anything fancy, just ordinary console application Win32 projects generated by the wizard. After I modify a .hpp file that is included by a .cpp file in the project, whether o ...Show All
Srikanth Pai obtaining callstack level in c++
Is there a way to get the callstack level in c++ for example, take the following code: void call3() { //callstack level would be 3 } void call2() { //callstack level would be 2 call3(); } int main() { //callstack level would be 1 call2(); return 0; } And I don't mean obtaining it from using a debugger and looking at the callstack. I'm mean obtaining it programmatically. sean_n wrote: And I don't mean obtaining it ...Show All
Omnibuzz Some insight for a new C++.net developer
Good morning experts: It is beginning to become a little frustrating finding some basic information for somebody new to the .net environment in regards to c++.net 2005. Could you be so kind to explain a few basic terminologies to get me on the right track Since I'm new to the environment, where would you suggest I begin I've taken C++ classes in college, so I'm not oblivious to the syntax, but I see terminology like Managed C++, unmanaged ...Show All
dd_helper Modal dialog needs a parent - in another process!
I am attempting to host an MFC COM client in a dll surrogate. My application creates the host and the host creates the MFC based COM server. The COM server adds commands to my application. If one of the commands creates a modal dialog box, when DoModal is called, the dialog does not come up on top of my application window, which is what I want to happen (and is what happens if I am not using a surrogate host.) When a modal dialog is launched, ...Show All
Angele 2 questions
1.) I am having problems installing the software. It gets to the downloading part says 0% and says it couldent load. 2.) I..want to become a game developer...but dont know anything. Anywhere I can go to get started learning My bad!!! meant to put this in C++ .......nope.....found another place I should have put this.....When a mod gets to this, can they move this well, I dont have a firewall, at least I ...Show All
Ivo Manolov -- MSFT Error LNK2001: unresolved external symbol "__declspec(dllimport) public: class CString __thiscall
Hi, I am trying to use 3 rd party API interface in VC++ module. Below is all that I got in the package. CdCore.dll CdCore.lib CdCored.dll CdCored.lib CdDefs.h CdSdk.h This is my program #include <cstdio> #include <conio.h> #include <sys\types.h> #include <string> ...Show All
Discussion convert BSTR string to New Character String
Hello! I am not a wizard in this area! Just need some help out in this. I am trying to convert bstr string to new character string. Here is the snippet of my code. **** Code Start**** // A Call function to C#.NET to get the string value. bstr string value is sent to C#. The C# // does some manipulation and returns the value to VC++ to bstrTNamePtr. GlobalInterfacePtr->GetName(bstr, bstrTNamePtr, &retVal); wcscpy (wstr1, *bstrTNam ...Show All
SuperMarkyMark linking fails when compiler is set with the \clr
Hi, I have a solution comprise of 2 projects with one referencing the other, both are written in visual c++ and both are compiled with /clr, each of them is also compiled with the option /MDd. when this solution is compiled with the option "no run time support ", it's compiling allright, but with /clr I got the link error- lnk2022. the compiler has indicated an error in a lib file , so I used ildasm tool to generate an ...Show All
Wasim Microsoft Visual C++ Runtime Library error question
I recieve this error when I launch Internet Explorer - version 6.0 OS Windows XP Home edition 2002 Service Pack 2. Error is as follows: Microsoft Visual C++ Runtime Library Runtime Error! Program C:\Program Files\Internet explorer\iexplore.exe This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. I am not certain where to post this questi ...Show All
rsf_05 ListView in Visual C++
Hi, I want to use a somekind of a "table" control in my form. The table columns consist of a nb. of units, a description and a unit cost. At the bottom of the table control, I would like to put a total cost of every items listed in my table (sum of (nb.units * unit cost) for all items in table). If I add a new record for which a same "description" exists in table, I will instead update this record and increment the " ...Show All
