|
|
Hi there,
I want to show a 3D Cube on a panel of a form using C++.Net. But I don't have any idea how to access the DX9 from C++.net and how to draw on a panel. I need a tutorial on C++.Net to use DirectX9 and D3D.
Regards,
EH
|
|
|
|
|
|
Hi Everybody,
I am working on open swfsource in VC++ .NET platform..
and in my application i want to parse XML using C++
Can anybody suggest me the way to parse XML data through C++ code?
And, please suggest me if there are any in-built C++ libraries available for parsing XML(preferably SAX) or if in-built libraries are not there, then which third party parser should i use for parsing XML(preferably SAX) data through C++?
Note: Code examples and links are welcome.
Thanks in advance.
regards,
ADARSH
|
|
|
|
|
|
Hi friends,
any one can help me how to proceed.......to install a software from the remote system to client system without user interaction.
suppose i am downloading a PDF file from the remote system to client system but the client system does't have PDF installation........for this when i click on any PDF file from the remote system first it should download the PDF software then it should download the PDF file.
can any one help me how to do this for customised softwares
Thanks
Ramakrishna.J
SoftProSys ltd.
|
|
|
|
|
Hi,
I am trying to build a application using MC++, but what I found out is that each time when I am runing the application in debug mode (have not tried release yet), it always takes more than 5 seconds to start the applicaiton. First, I thought there was something wrong with my code, but when I tried to build some sample codes, which I downloaded from web, it was the same. It took more then 5 seconds to start the program. I am wondering if this is the way it is supposed to be or there is something that I need to setup with my VS.Net, which I didn't...Can anyone give me some suggestions about what is wrong and what I should do with it. Thanks alot
|
|
|
|
|
Whats your system Configuration?
and Check below things in your System.
1.Clean Your temp files from the system
2.Check the Virtual memory you set, if it is less than some 500MB then increase it to 1000 MB
Thanks
Ramakrishna.J
SoftProSys ltd.
|
|
|
|
|
hello..
how to declare array to the size of 2 to the power of 32 (4294967296)? if it's not possible, how to make the max array size to 65535? eg:
char input[65535][65535];
i know it's not possible cuz the default data segment is 64k only.. i tried to this one:
char huge input[65535][65535];
but declaration error..
pls help.. thanx!!
~wiLd Cat~
|
|
|
|
|
lyn wrote:
how to declare array to the size of 2 to the power of 32 (4294967296)? if it's not possible, how to make the max array size to 65535? eg:
char input[65535][65535];
How about:
char *input = malloc(sizeof(char) * 4294967296);
BTW:
Unless your computer has 4 gigabytes of RAM, you'll really need to redesign your data input code
--
Russell Morris
"So, broccoli, mother says you're good for me... but I'm afraid I'm no good for you!" - Stewy
|
|
|
|
|
(With Borland C++), I'm using TextOut(..) to put some text in a window. SetTextAlign(..) and SetTextColor(..) work fine, but I want to use different fonts for the various bits of text. I've searched the inet, but can't find anything. How can I do it?
Thanks,
Graham Rounce
|
|
|
|
|
Hi everybody,
I am reading XML and using the XMl data for calling some functions in a DLL
I have a problem:
i am taking one (String *str;) pointer, which is assigned with a value returned from one of the XML function. Now i want to convert this String value into integer value.
Can someone tell me that how i can do this??
Thanks in advance,
ADARSH
|
|
|
|
|
ADARSH
Try int x = Convert::ToInt32(str); or int x = Convert::ToInt16(str);
Convert has several conversions available.
Cheers
John
|
|
|
|
|
Hi everybody,
I'm trying to build a dll file in VC++ .NET 7.1 . The Compiling of the code was OK, but when I'm trying to build the dll I recieve these errors:
c:\test\projatldll\projatldll\first.h(29) : error MIDL2025 : syntax error : expecting a type specification near "ostringstream"
c:\test\projatldll\projatldll\first.h(29) : error MIDL2026 : cannot recover from earlier syntax errors; aborting compilation
LINK : fatal error LNK1240: failed to compile IDL content
Can anyone help me to get rid of this situation ???
Thanks in advance..
regards,
ADARSH
|
|
|
|
|
ok this is annoying...the following line is killing vs...(hate this)
containerListViewItem2->Tag = __box(0);
ive seen this problem before, its like when you add components to c++ .net...if it makes this __box command it kills the visualizer and only way to fix is to continiously delete that line from form1.h and offcurce vs.net re adds it
|
|
|
|
|
hi
i am having a problem with an infinite loop
can someone check out the code and tell me
what is wrong with it...
[code]
int main()
{
int numberOfResponses; //number of responses for candidates
int accumulator = 0; //adds up total number of votes
do
{
char* stateName = new char[30]; //char pointer array for stateName
char* dateOfPrimary = new char [30]; //char pointer array for date of primary
cin.getline(stateName,30) ;
cin.getline(dateOfPrimary,30);
cin >> numberOfCandidates;
primaries NewPrimary(stateName,dateOfPrimary);
cout << NewPrimary <<endl;
delete="" []="" statename;=""
delete="" dateofprimary;=""
for="" (int="" i="0;" <="numberOfCandidates;" i++)=""
{=""
char="" nameandspent[50];="" char="" array="" for="" name="" and="" money="" spent=""
cin.getline(nameandspent,50);=""
if="" (i="" !="0)"
candidates="" newcandidate(nameandspent);=""
cout="" <<="" newcandidate="" endl;=""
}=""
results="" newresults;=""
int="" votes;=""
cin="">> votes;
accumulator = accumulator + votes;
NewResults.voteArray[i-1] = votes;
}
NewResults.totalNumberOfVotes = accumulator;
NewResults.percentage();
cout << NewResults << endl;
cin >> numberOfResponses;
for (int i = 0; i <= numberOfResponses; i++)
{
int c, i, v;
cin >> c;
cin >> i;
cin >> v;
election MyElection(c,i,v);
}
char blank[5];
cin.getline(blank,5);
cin.getline(blank,5);
}while(!cin.eof());
return 0;
}
[end code]
the INPUT is like this:
Iowa
January 19, 2004
6
Kerry 50000
Clark 20000
Dean 40000
Gephardt 20000
Lieberman 10000
Edwards 40000
1128
83
540
318
60
957
15
1 2 8
3 2 5
1 3 6
1 1 6
6 1 7
5 2 5
2 4 7
4 3 6
6 2 7
1 4 9
6 4 7
3 4 7
2 3 6
1 4 8
4 2 6
New Hampshire
January 27, 2004
5
Kerry 500000
Clark 200000
Dean 400000
Lieberman 100000
Edwards 50000
84229
27254
57788
18829
26416
25
1 2 8
3 2 7
1 3 6
1 1 7
3 1 7
5 1 7
2 4 6
5 3 6
4 1 4
1 4 9
3 4 8
1 2 7
2 1 7
3 2 8
4 2 6
5 2 8
2 2 6
3 3 7
1 2 8
2 3 7
3 2 7
4 4 6
5 4 7
2 2 6
3 3 6
ps....if i use just one set of data...my program works...but when i add another set of data....such as above (there are two) one for iowa and one for new hampshire...it keeps going on forever...help please
|
|
|
|
|
Somehow I dont think you can managed Managed Extensions for C++....
leppie::AllocCPArticle("Zee blog"); Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.
|
|
|
|
|
How can I read a number from a text file?
Mayber there are two numbers in an text file,:
4578 8956
How can I read it as tow numbers: 4578, 8956 respectively?
Thank you!;
|
|
|
|
|
Hi everybody,
Can anybody help me by sending some examples of how to read XML in C++ using SAX ?
Basically, i want to read XML in C++ using SAX and based on the data got from the XML i want to call some C++ functions developed by me.
Thanks in advance,
ADARSH
S.E.Biz Infotech Pvt. Ltd.,
Chandigarh
|
|
|
|
|
|
when I #include "windows.h" and #include "mmsystem.h"
and build my program it will be orcurr an error :
c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\ServProv.h(99): error C2371: 'IServiceProvider' : redefinition; different basic types
c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\ServProv.h(92): error C2872: 'IServiceProvider' : ambiguous symbol
help me how to fix it, because i want use mciSendString to play an audio file.
thanks
Nho'c Ti`
|
|
|
|
|
Hi' im used to c#, and c++'s excessive use of tabbing in and nextlinning is erking me.
For example. instead of like this (note "......." is just cause im tryin to tabe this stuff over)
private:
.......System::Void button1_Click(System::Object * sender, System::EventArgs * e)
.......{
.......Form2* f =new Form2();
.......f->Show();
.......}
i want it like this!
private: System::Void button1_Click(System::Object * sender, System::EventArgs * e)
{
.......Form2* f =new Form2();
.......f->Show();
}
Also, is their any way to make everything lineup proper when you type the closing bracket } , like in c# it auto tabbed in stuff to make it neat and speeded up my work... I need these things to use this managed c++ or im gonna freak.
Lastly, whats the equlivaant of #region and #endregion, cause i got all this code i want to conver to c++ managed, and i used that thing tons of times to make my code neat
|
|
|
|
|
I am writing a game addon using .NET in managed code. I have a struct that has a few char[64] entries to be compatable with the unmanaged sections of my code. I want to open a file and either read or write using the char[64] characters. I tried using StreamReader, but it only returns managed type code (String* or __wchar_t) and can't write to the char[64] members. There are also some doubles, ints and bools that need to be read/written. I tried using iostream but it doesn't seem to work because of multiple errors with the header. How can I do this?
James Meade
vLT(jg) vUSN
vOPSOFF VAQ-140
|
|
|
|
|
he mate..how r ya....call me dj_oden okay...just see me as a passer by and a stranger ..so dont need to know my name....anyways for an answer to what you've said...i have a perfect script for you...it's based on...tri overlooping...so at that point...you can get it to operate in many oss....os/1 or os/2 even...anyways...i cant sendit to you ....from here..so maybe you can give me your email addy..that'll be good...or you can contact me on ...crypto_000@hotmail.com
dj_oden@$%$&^highlander
|
|
|
|
|
hi james...
are you getting link errors or compile errors?
i am trying to do the same thing and everything works ok, but i get a heap of LNK2020/LNK2019 errors etc...
cheers
nik
Nik Vogiatzis
PhD Candidate: University of South Australia
+++++++++++++++++++++++++++
Developing new generation Traffic Micro-simulation Tools for Traffic Engineers
em: nikolaos.vogiatzis@unisa.edu.au
|
|
|
|