Saturday, May 22, 2010

Dev C++ file compatibility?

Will a Dev C++ file run on Visual Studio?

Dev C++ file compatibility?
Bloodshed Dev-C++ is a compiler...





It creates normal C or C++ files..





So,


It doesn't matter what the compiler is..


You can open it on any C/C++ compiler..





But sometimes.. Programmers who prog with Visual Studio use microsoft C/C++... we can't use Dev C++ to run the MS C/C++ coding then...





If you are coding in ANSI C.. You can do anything with any compiler....





Good Luck....


:)
Reply:Dev C++ is an IDE, not a language. If the "file" to which you refer is a valid C or C++ source file, it should run just fine in VS.


C++: Why is DateTime not working?

The C++ following code (in Visual Studio 2005) generates the error message, "DateTime: undeclared identifier" when i try to compile. Am I using the namespace incorrectly? Why would this not work? Microsoft indicates that DateTime can be used if you use the System.IO namespace...





using namespace System;


using namespace System::IO;


#include "stdafx.h"





void MyProgramDlg :: OnBnClickedUpdate()


{


DateTime x;


}

C++: Why is DateTime not working?
try moving #include "stdafx.h" to the top, above the 'using namespace'.
Reply:First of all, you declare X to be a datetime object now you need to access the date and time





Look in your help file - Can't recall the object names to access but it will be in this format


x.hour x.min


Does any one know how to sum numbers in a listbox?

using visual studio C#

Does any one know how to sum numbers in a listbox?
int sum = 0;





foreach (String listItem in myListbox.Items)


{


sum += Int32.Parse(listItem);


}

trading cards

Read below?

i am beginer to microsoft visual studio C# 8.0 and i don't to write code where can i learn it ?Msdn turning doesn't teach codes etc

Read below?
MSDN has some good walk throughs for free. Try this link as a starting point:





http://msdn.microsoft.com/vcsharp/learni...





Good luck!
Reply:1 )www.google.com


2 )www.microsoft.com--%26gt;select msdn
Reply:The best option is to get a couple books.





You can do a search for C# tutorials.





Yahoo also has C# discussion groups you can join.


Abnormal Program Termanation?

Stemming from Windows Visual Studio C++, reinstal to no effect.

Abnormal Program Termanation?
I think if I was you I would open my control panel and select add and remove click on it and then I would select the program and I wild delete it totally after deleting it I would then shut down my computer and as about 20 seconds I would turn it back on and wait for it to come back up and then I will reinstall the program again. after I reinstalled it I would shut down again and then I would again 20 seconds and I would turn my computer back on and It should be working fine. The real key to success is the shutting off and turning back on


How to average a series of integers using assembly language?

I am trying to write a program that will find the average of a series of integers and store the result in the BX and AX registers.


e.g


Main array = 4, 1, 28, 11, 2, -28, -7


The result will be


(Quotient) BX = 1


(Remainder) AX = 5





This is a pseudo-code for it, but having hard time putting it in assembly language!


I am using visual studio c++


.........................................


First move the numbers in some memory location using mv. Then set one register say CL as the counter and set it to the number of elements in the array. Then start a loop untill the content of CL becomes zero. In each step decrease CL. And read the memory location and add that to some other register say DX. After adding up all the elements divide the sum by the number of elements.


.........................................





Will some one help me out!

How to average a series of integers using assembly language?
Aw come on, replace the words with instructions and it's done for you! Using nasm:





mov dx,0


mov cl, 7


.loopstart


TODO add to values to dx


dec cl


cmp cl, 0


jne. loopstart


(there's a way of doing the dec, cmp and jne all in one go - look it up)


TODO divide the value in dx by 7





There - if you use nasm you only need a header and to fill out two bits of code and it's done. Of course NASM looks a little different to microshaft assembly... It'll take you an hour at the outside to work this out ya lazy little tyke.


Sunday, August 2, 2009

How can I communicate to the USB port?

Hi,


Can anybody tell me that how i can communicate with the USB port ?i want to make a simple program (at that time) in the visual studio c# ,such program has ability to on/off the LED connected to the USB port. Please guide me..........

How can I communicate to the USB port?
try looking at http://www.codeproject.com
Reply:Check yr manuals dude.

our song