Sunday, August 2, 2009

Visual C++ experts out there... HELP...Please...?

Guys, what MFC or API code is used to RESTART an APPLICATION? (not restart a computer or device) Please do not misconceptualized the sentence.





Thank you in advance and More Power to Yahoo! Answers...

Visual C++ experts out there... HELP...Please...?
There's no such thing as restarting a process.





u can try and kill a process and then restart it.


Visual C++ developers HELP?

What code or lines of code will I use to close my application e.g. the same as that of clicking the exit button on any windows application?





I tried


1. exit(0), exit(1) ---%26gt; but it gives an error message


2. CFrameWnd::PostMessage(WM_CLOSE, 0, 0); (same)


3. //AfxGetMainWnd()-%26gt;SendMessage(WM_DESTRO...


//AfxGetMainWnd()-%26gt;SendMessage(WM_QUIT); (same)


4. ((CMainFrame *)AfxGetMainWnd())-%26gt;SendMessage(WM_CLOSE... 0, 0); (same)





I have an activeX control embedded in my application.


The error message comprises of three buttons namely Debug, Send Error Report and Don't Send...





Please help

Visual C++ developers HELP?
try this...


Application::Exit();

pink

Is Microsoft Visual C++ 6.0 same as C++?

C++ is a computer language


MSVC C++ 6.0 is program. You can us this to edit/compiler/debug C++ Code.


Visual C++ Programmers... HELP?

How to capture the functions of Minimize button on the title bar? I want to control minimize button on the title bar e.g. when user clicks on that button, it will perform something based on what I want it to perform...





Thanks...

Visual C++ Programmers... HELP?
process the WM_SIZE message
Reply:I really did not think that you could do that, as that is an operating system function


Visual C++ question?

--------------------Configuration: 2 - Win32 Debug--------------------


Compiling...


main.cpp


d:\koleya\intro\section\2\main.cpp(5) : error C2065: 'cout' : undeclared identifier


d:\koleya\intro\section\2\main.cpp(5) : error C2297: '%26lt;%26lt;' : illegal, right operand has type 'char [80]'


d:\koleya\intro\section\2\main.cpp(7) : error C2297: '%26lt;%26lt;' : illegal, right operand has type 'char [37]'


d:\koleya\intro\section\2\main.cpp(9) : error C2065: 'cin' : undeclared identifier


d:\koleya\intro\section\2\main.cpp(9) : warning C4552: '%26gt;%26gt;' : operator has no effect; expected operator with side-effect


d:\koleya\intro\section\2\main.cpp(11) : error C2297: '%26lt;%26lt;' : illegal, right operand has type 'char [38]'


d:\koleya\intro\section\2\main.cpp(13) : warning C4552: '%26gt;%26gt;' : operator has no effect; expected operator with side-effect


d:\koleya\intro\section\2\main.cpp(15) : error C2297: '%26lt;%26lt;' : illegal, right operand has type 'char [37]'





I cannot correct these errors... could someone help?

Visual C++ question?
Have you check if you included iostream? I have not programed in Visual C++ for a long time. But the look of your error, cout definition is not seen by the compiler. So probably there is a probably including iostream.h
Reply:maybe





#include %26lt;iostream%26gt;





and /or





using namespace std;





is missing.
Reply:Try:


#include %26lt;iostream%26gt;





and





std::cout %26lt;%26lt; ...


instead of


cout %26lt;%26lt; ...


Visual c++ question?

Can you tell me what foobar.h is used for.

Visual c++ question?
Foobar is an old geek joke. It's a generic name for just about anything. Here:





http://www.catb.org/~esr/jargon/html/F/f...





Also check out the Wikipedia article:





http://en.wikipedia.org/wiki/Foobar





As a Microsoft-hater, I would ordinarily not know what a given Visual C++ function is or does, but I should caution you that while they may well have done something nerdy like create a foobar.h, it is usually used to mean "generic header file". If you see it in documentation it is most likely to mean that.

periwinkle

What is Visual C++ and Visual C#?

C++ is a compiled programming language good for creating executibles and DLLS (dynamic link libraries)





C# can do everything that C++ can but it uses an intermediate language (like Java does) making the language much more portable to other platforms / operating systems. It is also supported by Windows web servers for building websites (unlike C++). C# has more advanced and structured object-oriented features and has fixed a lot of the pitfalls that C++ is prone to (such as pointers and memory allocation)

What is Visual C++ and Visual C#?
VisualC++.


----------


The object-oriented implementation of the C programming language created by Microsoft. This tool provides a development environment for DOS and Windows applications.


Visual C#


--------


It is also an Object oriented language from Microsoft.
Reply:C++ support OO and C don't
Reply:Objected-Oriented Programming languages.


If i download microsoft visual C , does it run/compile C code? (C code not visual C)?

Visual C isn't a different language. The visual part refers to the fact that the IDE does things in a "visual" way ie place buttons on forms with point and click rather than coding positions manually.





It does come with some microsoft written extensions included. But if you code using the standards, it will compile with no problems.

If i download microsoft visual C , does it run/compile C code? (C code not visual C)?
yes
Reply:Yes. If you confine your coding to standard C, it will compile it as standard C. Most Microsoft extensions are flagged in the documentation.





Hope that answers your question.
Reply:If you use visual studio to create standard c programs then you start by creating a project as a console project.


Is microsoft visual c# and microsoft visual c the same programing language?

There is a big difference between the programming languages (C++, C#) and Integrated Development Environment (IDE) like Microsoft Visual Studio. The C++ and C# languages are quite different. You can see the comparison here: (http://msdn.microsoft.com/library/defaul...





Depending on context, when people say Visual C/C#, they mean either MS Visual Studio IDE or Microsoft Visual C++/C# implementation of the language. For example, if I say, “it is compiled in Visual C++”, I mean that this code is written in C++ and compiled using Visual C++. I may also say “I opened a solution in Visual C++ (Studio)”, in this case I mean that I used Visual Studio IDE to open a solution (set of projects).





I hope this makes sense.

Is microsoft visual c# and microsoft visual c the same programing language?
yes and no
Reply:The "visual" refers to Microsoft implementation/product.





C# and C++ are the languages, and they're different. For example, C# is fully object oriented, C++ is not.
Reply:They are different languages. C# is really more of a java like language in that it is more object oriented and more visual in nature. If I had a choice to learn either, I would just go with C#.


How can you differentiate C, C++, Visual C++, C#, Visual C# ?

Actually I want to know what is the basic difference between them. What are their application areas? Can each one of them substitute each other? What about the syntax? Is there anything common in these languages? Who has built these languages. What is needed to run these languages on our computer? What IDE or complier is needed?





I would prefer direct answers only who know about these languages. Please dont provide links to other pages.





Thanks in advance.

How can you differentiate C, C++, Visual C++, C#, Visual C# ?
Lets start from the begining :)





In 1971 two computer engineers Kerringhan and Ritchie developed a language which could be portable to different machine, their objective was to develop a high level language which gives them power of a low level language and still have sufficiently human comprehensible code. The result was a language they named as C. The nomenclature came from an earlier language which was called BCPL or in short just B, so they termed thier langauge as C.





C became tremendously successful as it was powerful, easy to understand and easy to program with, giving a lot of flexibility to the programmer. It was termed as 'The Programmers´Language´ and one of the first sucess of C was UNIX which was written using C.





In late 70s when the computer programs were getting bigger and more complex, a new concept was introduced which was that of Object Oriented Programing (OOP). Richard Stroustrup started building the foundations of an Object Oriented version of C. His first results were a highly modified (in syntax and type checking etc) version of C and he named his new version C++, basing his name on the ++ operator used by C which increments the value by 1.





There were many IDE for both languages, most famous at the time were from Borland, named as Turbo C and Turbo C++.





Later, with the advent of Windows based Operating System and introduction of Microsoft Foundation Classes, Microsoft introduces its own versions of IDE for C and C++. Microsoft named them ´Visual C´and ´Visual C++´. Note that these two are not separate languages, but just new IDEs, though there were certain syntax restrictions put in by Microsoft, which makes them a little different from thier ANSI counterparts.





C# is another adventure of Microsoft which uses the CLR and .NET framework. This is a new language which appears to me more of a newer version of JAVA rather then C (both languages use a similar syntax and program architecture) as it incorporates more feature of a ´secure´JAVA then the loose barrelled C.


IDE for C# is called Visual C# carrying on the nomenclature of ´Visual´for Microsoft.





Hope this helps.


Just as a footnote, C is my personal favourite programing language.
Reply:C is a subset of C++. C cannot do classes, operator overloading or templates whereas C++ can. C# is quite different, although it looks similar. It is a managed language, and a lot of behind the scenes stuff is taking place.





C is the fastest of these 3, but more limited in terms of features. C++ is slightly slower, but for the most part the performance difference is negligible. C# will execute slower than both in most cases, but again this difference is negligible. Being a managed language, C# has a lot of features to ease developer productivity, it is the ideal language for quickly creating applications that can perform moderately well.





All three of these languages could be used for the same things, although many will pick C or C++ for computationally intensive tasks. The syntax for all three is also very similar, except that C does not support classes, and C# typically does not work with pointers (although it can).
Reply:An interesting question. Realistically, a programming language is just an interface so a human can produce programmes to run on a computer as the computer can only interpret '0's and '1's. Very early computers could only be programmed in '0's and '1's because there were no programming languages back then! Over the years, different languages were created by various people who had different needs. Some of the languages were popular enough to stick around, and all the most popular ones can be run with the .net environment. All of the languages have different strengths and weaknesses depending on what type of program you need to create. Some of these languages (such as C and C++) are designed for creating code that runs very fast for creating operating systems and controlling hardware. Others are very good at handling text and database applications (such as BASIC) but not at all suitable for operating systems or control applications as they would run too slow to control any hardware devices.


As for the differences in syntax, that is a very diverse question, suffice to say that after a while in dealing with various languages, you get to know the syntax so that at first glance you can tell what language is what. This is similar to when you see a foreign language written, or hear a foreign language spoken...after a while you just get to know it and understand what it is. The more interest you take, the more detail you learn.


Hope this helps, regards Dave.

night blooming cereus

How to combine C++ and visual basic?

all i wanna do is make a visual basic form with 1 button so a C++ program will execute.





anyone know how ?

How to combine C++ and visual basic?
Assuming I understand you correctly: you have, or will write a vb program with a form. On the form is a button that you want to execute a c++ program. Another thing: I figure this is vb6, not vb.net. Assume that the c++ program has been compiled/linked to a .exe file. The take a look at the shell command in vb help. It's something like


rv = Shell(RunCommd, style)


Shell runs an executable program and returns a Variant (Double) representing the program's task ID if successful, otherwise it returns zero. That'll do ya.





If it's vb.net, you'll probably want to get into ShellExecute or find the .net call that does the equivalent; can't remember right now.
Reply:There're two combination: use C++ method in VB, or use VB method in C++, the principle of both is same.


Create a DLL(dynamic link library) project and build it, it'll make a DLL file, which is complied to be a binary file,so it could be used under any perform or lanuage.


Of course different language has a different way to define or import a dynamic library, so all I can tell you is a general path to combine C++ with VB:built a DLL , upload the Dll method in your program.
Reply:I don't know if this will help, but if you search www.download.com for a c complier, you will come across a program that compiles c code from basic. ( I don't know if it's visual basic or the old ms-dos based basic though. )


Is C language is more important or visual basic please write details?

In the other words what is a differenc between C and visual basic. I am waiting for your answers.

Is C language is more important or visual basic please write details?
If you r developing any system level things u should go for C.





While VB is mainly use for GUI based software, mainly accounting software, it would be difficult to develop system level software in VB.
Reply:c is much older and can write more powerful programs, like operating systems





vb is really just for windows programs and is much easier for someone just starting out


How to view C# Windows Application Design in Visual Studio 2005?

I am writing a Windows Application in C# using Visual Studio 2005. It was easy to see the results of my code since there was a tab that showed a preview of my design. In this tab, I could also drag components from the toolbox, and VS 2005 will generate the code for that manually.





I use a different computer at school, so when I opened the project file, this preview tab didn't appear. I can't find the button/command to show this preview of the design.





Can you show me how to do it?

How to view C# Windows Application Design in Visual Studio 2005?
On the top you should find a button called "Solution Explorer"


Click on that and you should see a list of files that go into your project.





Each form will have 2 files


For example Form1.cs is where you design the form


Form1.designer.cs is the file that holds the code for the form.


C++ - Visual C++ Program this for me please.?

// Program Shell3 reads miles and hours and prints miles


// per hour.





#include %26lt;iostream.h%26gt;


#include %26lt;iomanip.h%26gt;





/* FILL IN the function prototype for GetData */





int main ()





{








float miles;


float hours;


float milesPerHour;








/* FILL IN code to call function GetData */





milesPerHour = miles / hours;





cout %26lt;%26lt; miles %26lt;%26lt; hours %26lt;%26lt; milesPerHour %26lt;%26lt; endl;








return 0;








}





//************************************...





/* FILL IN the function heading for GetData */








{





/* FILL IN Code to prompt for miles and hours */


/* FILL IN Code to read miles and hours */








}

C++ - Visual C++ Program this for me please.?
/*FILL IN $20 in my pocket and then I will do it*/








edit : OK, $10








EDIT EDIT : Of course you will get errors if you don't fill it with real C++ Syntax...duh!
Reply://You might want to do some error checking, if required, to make sure correct numbers are entered!


void getData(float %26amp;miles, float %26amp;hours)


{


cout %26lt;%26lt; "Miles? ";


cin %26gt;%26gt; miles;





cout %26lt;%26lt; "Hours? ";


cin %26gt;%26gt; hours;


}





...WeirdB is right, your really not learning if someone else is doing it for you! You might regret this on the test, but hopefully you may heed this warning in the future. Good Luck!
Reply:miles, hours and milesPerHour should be initialized so they can further used, put initial zeros to them and 1 to hours coz if GetData() didn't modify them you won't get any errors in your arithmatics, and double check the values when they return from GetData() .. keep the money just tell me if it works
Reply:You haven't given any information on the errors, so I'd have to guess. You have a set of braces outside the int main() scope that isn't part of a function. I can see that being an error.


Keep your 20$ and just give me best answer ;)
Reply:1) Do your own homework


2) Hint: this question has already been answered on this site. Search for it.

orchid cactus

Advantages to using C++ vs Visual Basic?

I program Visual Basic and I've been starting to look in C++ which seems to be much more common, but I'm wondering what are the advantages to C++? I assume there's a reason people would use a more complicated language, and I'm curious what it is.

Advantages to using C++ vs Visual Basic?
As you are a Visual Basic programmer you can not find anything special in C++. However you can get something new in Visual C++.


In visual C++ you get a good base for Document/view architecture that eases the programming functionality. VC++ also gives MFC supports that makes "everything possible" in windows programming.


For a form based programming VB is the best option but for device driver development, Multidocument document interface applications and programs like "paintbrush" VC++ looks easier.


If you come to C++ only, this is the base of VC++. But C++ console appliction do not give you any extra benefit. But I think that C++ is conceptually easy to understand and once you are familier to Object oriented concept of C++ you can use it in VB too!!!
Reply:the difference is like a painter using color provided by somebody else and a painter who made colors from his own resources and also others


he had wide range of source and can do wide variety of work now imagine a vb is similar to previous one and the second one like c++
Reply:Visual Basic (VB) is an interpreted language.


C++ is a compiled language.





You don't need access to runtime modules when you run a C++ program, VB programs require access to runtime modules.


This statement means that C++ programs do not require DLL modules, VB require VB runtime DLL modules to run.


C++ programs run faster than Visual Basic programs.


C++ in visual?

I have been learning simple codes from readoing "Complete idiot's Guide to C++" All my codes work in MiniGW Developers (IDE). I said why not learn to do it in visual 2005 express as well so I put in the code and it does work.Here's my code just simple.


#include %26lt;iostream.h%26gt;





main(){


int a;





for(a = -10; a %26lt; 10;a++){


cout %26lt;%26lt; a %26lt;%26lt; endl;


}





return 0;


}

C++ in visual?
Did you read the error message??? They aren't put there for fun. They're put there to tell you what's wrong.





You generated a default C++ Console App project using Visual Studio. Your project has a precompiled header in it. But your code doesn't have a precompiled header directive. Hence the error.





Remove the precompiled header from your project. Remove all of the other extraneous stuff that you are not using. Turn off creation of the precompiled header.





Remove all references. You aren't using any.


Remove AssemblyInfo.cpp. You aren't using it.


Remove stdafx.cpp


Remove stdafx.h


Remove resource.h


Remove app.rc


Remove app.ico





Now turn off precompiled header creation. Open the properties of your project. Go to C/C++-%26gt;Precompiled headers-%26gt;Create/Use Precompiled headers.


Select "Not using Precompiled headers."





Now you no longer need a precompiled header diretcive, so you won't get the error that you don't have one.
Reply:(L)


yes c++ is visual.
Reply:in visual studio 2005 make sure you are creating a new win32 console application. i would make the code look a lil different as follows:





#include %26lt;iostream%26gt;


using namespace std;





void main(){





int a;





for(a= -10; a %26lt; 10; a++){


cout%26lt;%26lt;a%26lt;%26lt;endl;


}





}


I know C and Visual basic programming, how do i create a DLL file that I could use in the VB programs?

I want to experiment on my visual basic program using a link to simplify my codes and that is through using DLL files. I want my DLL files to be made using C/C++ program. After creating a C program, I want to make a DLL file out of it and use this to my VB application.

I know C and Visual basic programming, how do i create a DLL file that I could use in the VB programs?
If you download VB.NET Express (Free download from Microsoft) you can use it to create DLLs
Reply:its not free Report It

Reply:Hmm strange.


Looking at Microsoft site


http://msdn.microsoft.com/vstu...





"Get it for FREE" I downloaded it for Free, installed it for Free, and have been using it for Free.





But if you say it's not free ... Shrug. Report It

Reply:The Client Application (Visual Basic)





Accessing a C++ DLL from Visual Basic is much easier than from C++. The only task that must be done is to declare the function prototype; Visual Basic will handle everything else. In order to do this, include a code module by clicking Project -%26gt; Add Module -%26gt; Open. In the new module, declare the function prototypes in the following manner:











Declare Sub TestFunc Lib "../testdll_library.dll" ()


Declare Function RetInt Lib "../testdll_library.dll" (ByVal t As Integer) As Integer

















One important note is that all parameters must be passed with the ByVal keyword. This is because Visual Basic always passes parameters ByRef by default. Since C/C++ usually passes by value, this must be specified in the Visual Basic declaration. This is all that is necessary when standard C variable types (int, long, etc.) are used, however complex data types like strings and arrays require more overhead on both the client and DLL sides.





Quote from source. Google is amazing isn't it? ;)


I have visual studio 6.0 and i am learning C++ on it. Is there a big difference between The visual studio.net?

Basically what i am asking is, if i learn C++ on visual studio 6.0 am i wasting my time because there is a visual studio.net out? All i have is visual studio 6.0 right now and i am limited on funds. WOuld i benifit from learning on visual studio 6.0? What is the difference between the two?

I have visual studio 6.0 and i am learning C++ on it. Is there a big difference between The visual studio.net?
If that's all you have, you'll be fine. If you can learn C++, the syntax and language is pretty similar to the .NET framework. It's definitely better than not learning anything at all, and you'll definitely benefit from learning VS 6.0.





The difference is in the syntax. It's easier to do a few things in .NET, but...C++ is one of those languages that'll be practical to know for a couple more decades (probably).





I wish I could give you a rundown of all the differences, but someone could write a book on it...suffice it to say, it transfers over pretty well. If anything, .NET's easier to program in, so you'll be more prepared by learning in VS 6.0.
Reply:yes you are wasting your time. i HIGHLY recomend getting VS.net, as its features are vastly superior to 6.0
Reply:if u want to learn c++ go for gcc based ISO C++ rather than microsoft technologies.............


opt for .net rather than 6.0 to learn vc++.......


if u r short of funds simply download express editions from msdn which are available freely(check the link)..........
Reply:"I have visual studio 6.0 and i am learning C++ on it. Is there a big difference between The visual studio.net?"


Yes.





"Basically what i am asking is, if i learn C++ on visual studio 6.0 am i wasting my time because there is a visual studio.net out?"


Yes.





"All i have is visual studio 6.0 right now and i am limited on funds. WOuld i benifit from learning on visual studio 6.0?"


You would benefit from learning on VS6, but you would benefit significantly more from learning on .NET.





"What is the difference between the two?"


C++ was revised in 1998 and 1999. The changes were significant. VS6 supports old C++. VS.NET supports new "modern" C++. So if you use VS6, you're locked out of modern C++.





If you try to use anything like advanced templates and generic programming in VS6, it won't work. Guess what people will tell you: upgrade. Try using third party libraries that work with modern C++, and guess what they tell you: upgrade.





So you want a modern C++ compiler. There's two major compilers out there. Gcc and VC++. GCC has a windows port called MinGW and VC++ comes with Visual Studio .NET. MinGW is free by the way. VC++ is not, but Microsoft released a scaled down version for free, called Visual C++ Express Edition.





MinGW: http://www.mingw.org/download.shtml


Direct link to MinGW: http://prdownloads.sf.net/mingw/MinGW-5....


Visual C++ Express: http://msdn.microsoft.com/vstudio/expres...





IDEs:


Code Blocks: http://www.codeblocks.org/


wxDev-C++: http://wxdsgn.sourceforge.net/

palm

Shall I take C#/C++ or Visual Basic for AVR Programming?

Hi,





I am currently studying the AVR microcontroller in assembly but would like to learn a high level language that in the future would help me in programming microcontrollers too. Perhaps it would be simpler for me to do so in a HLL too.


Would you suggest C#/C++ or Visual Basic?





How are PLC compilers for these languages if in the future I also switch to PLCs? Are they worth using?

Shall I take C#/C++ or Visual Basic for AVR Programming?
well since you do assembly then learning any other of the said languages will be easy for you, given your situation I'd say go for C/C++!
Reply:I highly recommend C++, it might not be the easiest to start with, but it's range of capability is immense. You can do anything with it.
Reply:Visual Basic = no





C++, it will save you a lot of time and grief. Visual Basic teaches young programmers the wrong kind of habits that can make learning other languages very hard. C++ works on EVERYTHING, yes, everything.
Reply:C#


C++ and VISUAL Basic Difference?

Well I did Visual basic as a summer course and Now I am doing C++ , apparentley I know both are programming languages but what is the main difference between both? And what are the pros and cons?

C++ and VISUAL Basic Difference?
May be you can post your requirements at http://homework.feedmelink.com/


and let many programmers bid for your project.


You can hire whoever you like.





Do not pay any money afront however.
Reply:More people use C++ thats what I know.
Reply:C++


u can say its professitional lang okay and its make alot of things for exmaple linux made by c++


Vb


like the same but u can't do kernel on it And its more easier just drop and drag And easier to connecting database
Reply:Visual Basic programs works only for windows,


and C++ is used also on the other platforms
Reply:Really it depends on whether we are talking about pre-.Net or post-.Net, but I will make some assumptions.





About -


C++ is a true OO (Object Orientated) language. Meaning, you have class separation layers that makes it easy to do modular programming.





Pros-


Very Powerful language as most large legacy systems are built in C++. Codebases routinely can be larger than 10 million lines with little trouble due to the module nature of classes.





Cons -


Takes a true skilled programmer to use effectively, and because no object cleanup system exists, it is quite easy to leak memory.








VB+


About -


Originally built as a prototyping language to be used internally by MS. Was never really intended to be used for production systems.





Pros -


Very Rapid to use





Cons-


No Scalability whatsoever. Very difficult to build anything that is not generic in nature.
Reply:Everybody seems to have missed one important difference. Visual Basic is Windows only. VB is great if you want something that is easy to write in and only runs on Windows. C++ runs on just about everything. I use it on 68K, Linux, Nios etc. heck, even Windows when I have to.
Reply:C++ is Character User Interface (CUI)


VB is Graphical User Interface (GUI)





In VB, you develop applications by using existing tools and you can do coding whenever required.





In c++ hard-end coding required. But you can develop very good logic. you can write system programs only in c++ not in vb.





Both are good and project requirement of vb or c++ depends on the domain.


I have downloaded latest version of Microsoft Direct x 9 SDK,can I use it with Visual C++ to compile programs?

I want to know whether Visual Studio 6 is sufficient to work with DX9 SDK or Do I need to have VB.NET.I want to compile %26amp; run simple Pixel and Vertex shading programs.I have got a supported GPU for pixel and vertex shading.

I have downloaded latest version of Microsoft Direct x 9 SDK,can I use it with Visual C++ to compile programs?
The directX SDK is a native library and most use C++ to code against it so yes. You can use COMinterop to use .NET and it's pretty good for the non-chatty interfaces (their might even be a publilshed .NET wrapper). But abosolutely you can use VS6 and C++.
Reply:Visual Studio 6 is fine, C++ will be the fastest executing language for this task. Or you can use .Net, DirectX now provide MDX, a managed directX that you can use from a .Net language (like C# or VB.Net). Or there's XNA, the latest .Net DirectX wrapper.


When i accept any person's webcam, i m receiving a dilog box of "microsoft visual c++ runtime library"

in this dilog box, i m receiving also that "runtime error!" ,program:c:\progra~1\yahoo!\messen~1\yah... and also "abnormal program termination"

When i accept any person's webcam, i m receiving a dilog box of "microsoft visual c++ runtime library"
abnormal program termination indicates that the program is either corrupted or improperly installed.





please reinstall the software.

petunia

What is the simplest way to access serial I/O in Visual C++?

I am a former assembly programmer. I use VC++ 6 a lot, but I have used .NET 2005, and C# as well. Not everyone has migrated, so VC++ 6 is my best choice.





Also I have written USB HID I/O code in VC++ 6, but my employer is migrating to ASYNC over USB. Any suggestions on that? I am writing code to communicate with bankcard terminals.

What is the simplest way to access serial I/O in Visual C++?
This will help you to use serial ports 1-4. I am not sure how well it will work with 5 and up.





http://www.control.com/1026175740/index_...





Async over USB?? I have never seen that done.
Reply:' Open the serial port


MSComm1.CommPort = 2 ' Set the port number


MSComm1.Settings = "56000,N,8,1" ' Set UART parameters


MSComm1.PortOpen = True ' Required, might lock port


MsComm1.Output = "Text string" ' Send data


Buffer$ = Buffer$ %26amp; MSComm1.Input ' Read data


Help!! I have a Dell Vista, whenever I start my computer, I get a Visual C++ Runtime Library error!?

Whenever I start up my dell vista computer, I get a message that says:


"Buffer overrun detected!"


"Program: C:\Windows\Explorer.EXE"


"A buffer overrun has been detected which has corrupted the program's internal state. The program cannot safely continue execution and must now be terminated."


I have no idea how to get rid of the message, I downloaded AVG antivirus, Spybot, and AdAware, scanned my computer using all three programs and still no luck! Please computer technicians, I really need help, my computer is only 5 months old!


Thank you very much.

Help!! I have a Dell Vista, whenever I start my computer, I get a Visual C++ Runtime Library error!?
Sorry but i'm really smart and i just want to said that i don't know what the problem is, you should contact someone to repair it or fix the problem.


What codes can i use so that i can connect Visual C# to the FireBird database??

I need codes on how to connect C# and FireBird ,,, codes such as to add, update, delete, view records.

What codes can i use so that i can connect Visual C# to the FireBird database??
Here is the Code





%26lt;P nd="9"%26gt;The Firebird ADO.NET


Provider can connect to a standalone Firebird


Server using a connection string like this:%26lt;/P%26gt;


%26lt;PRE lang=cs nd="10"%26gt;FbConnection c = new FbConnection("ServerType=0;User=SYSDBA;" +


"Password=masterkey;Dialect=3;


Database=c:\\data\\mydb.fdb");%26lt;/PRE%26gt;


%26lt;P nd="14"%26gt;It can connect to an embedded


Firebird using this connection


string:%26lt;/P%26gt;%26lt;PRE lang=cs nd="15"%26gt;


FbConnection c = new FbConnection("ServerType=1;User=SYSDBA;" +


"Password=masterkey;Dialect=3;


Database=mydb.fdb");%26lt;/PRE%26gt;


Where can I find a very good and explicit tutorial for Visual C++?

I searched, and I serched but I can't find a good tutorial for Visual cpp.

Where can I find a very good and explicit tutorial for Visual C++?
Well, If u ask me, I seggest u get away from VC++. Well, it's too confusing for nothing! I prefer using C++ and C#.net, I think C#.net is much more better than VC++ which can't give u anything special!


BUT if u still wanna try learning VC++, I just know that the SAMS VC++ book sucks!... Don't try reading it!...


Good luck ;)
Reply:http://www.programmingtutorials.com/cplu...


please click the above link to find what u r looking for. It will solve ur problem.
Reply:Theres only so much a tutorial can teach you. At some point you have to start learning on your own, you know the old "trial and error method". I used Visual "C++ in 21 Days" to get me started, and the rest I just did on my own. It wasnt the greatest book but you do learn the tools. If you need to learn the language itself, then take a course because its a little complex to just learn from a book or website.
Reply:C++ In a Nut Shell from Oreilly Publishing.
Reply:try one of these





http://www.google.com/search?sourceid=na...
Reply:www.codeproject.com


and the best answer is to resolve your any problem is only


msdn.com

mint

While attempting to run yahoo multi messnger.. showed microsoft visual c++ runtime library... run time error!?

program c:\program files\yahoo!\messenger\y!multi messenger.exe... what happened? what should i do?

While attempting to run yahoo multi messnger.. showed microsoft visual c++ runtime library... run time error!?
u should reinstalled the yahoo messanger. the software u have loaded for multilogin is disturbing that. it may be change some coding of yahoo messanger.


I want to read a c++ source code and then read the output of it from visual C++ 2005.?

I dont know the syntax for reading the output of the C++ code. Please help me.

I want to read a c++ source code and then read the output of it from visual C++ 2005.?
Find it from stroustrup's C++ book. Alternaively consult a C++ expert.


What is the equivalent of tms_stime and tms_utime in Visual C++?

I want to convert some code written in C for Linux in Windows environment but could not find the equivalent function that measures CPU time consumed in program execution and operating system functions. Also could not get much help on _ftime.

What is the equivalent of tms_stime and tms_utime in Visual C++?
You need to query the performance metrics using the win32 API





on msdn-


http://msdn.microsoft.com/en-us/library/...





an example-


http://www.codeproject.com/kb/system/cpu...


What is graphic functions header file in Microsoft Visual C++ 6.0?

In a C++ Source File program that runs in DOS, what header file contains graphic functions such as _setpixel(),





_setvideomode(), _lineto(), …? What is it's path and name?





Thanks.

What is graphic functions header file in Microsoft Visual C++ 6.0?
If your code will work purely in DOS mode (no Windows at all) you can get to a graphics mode using DOs Interrupts to set mode which defines the resolution and color depth (in DOS there is no wayb to use high resolutions with out using compatible VESA drivers for your video card) then can put pixels just by directly writting to memory locations segment b800h and a000h point to video adapters video buffer.





If you are using Windows you can use GDI.h (Graphics Device Interface) for a standardized video API independent of video driver. You use device contexts to access the graphic functions.





Loren Soth

sage

How do I use the radio buttons in microsoft visual studio using visual c++?

i am new to visual studio and i need help understanding how i can use the various items in the toolbox... i havent found a good tutorial yet, that shows exactly how to use the different tools in the toolbox and how their properties can be accessed so that for instance if im making a program that can add or subtract two operands, i can decide what the output will be at runtime when the user choses either a radiobutton called add or the other one called subtract...





if such simple tasks take so long to learn then i donno how the more complicated tasks can be handled...





I'm hoping to learn how to do these things using the internet without having to go resort to a training class in my city...

How do I use the radio buttons in microsoft visual studio using visual c++?
If you're new to programming try Visual Basic 2005 first.


It's quick and easy to learn, then learn C++.


Believe me it is much easier to understand C++ after you learn VB. Because, you will have already learned how to "program" but then will simply have to learn the C++ syntax.


Which MSDN version i have to install in Microsoft Visual C++ 2005 Express Edition?

One more thing i want to know how to install MSDN manually ,so that I can open it by pressing F1 key in Visual Studio 2005 Express Edition?

Which MSDN version i have to install in Microsoft Visual C++ 2005 Express Edition?
Your install should have come with an MSDN CD that was separate from the C++ install disks. The help files are on that disk.


How do you pronounce the name of the programming language 'Visual C#'? is it "sea hash"?

How is this language related to C, C+ and C++?

How do you pronounce the name of the programming language 'Visual C#'? is it "sea hash"?
It is pronounced Visual C Sharp.
Reply:C# is read as : sea sharp. C+ doesn't exist. C++ is the step up frm C. C# has various differences 2 C++ %26amp; personally I find it a lot easier 2 understand that C++. (Maybe 2 do with my crap @ explaining teacher who happens 2 b a DR!!! in Comp.Eng --(((( )
Reply:C Sharp is the answer.
Reply:The language is called "sea sharp", which is an ECMA standard (1). Although Microsoft invented the language, there are other implementations of it. Visual C# is Microsoft's implementation of the C# language.





It is related to other C languages (C and C++) by the fact that it uses the C syntax. Also Microsoft wants to replace the previous dominate languages of C, C++ and Java (also a C syntax language) with C#, so they gave it a name that made it look like the predecessor to C and C++.





The difference between C and C++ was the move from procedural or functional programming to object orientated programming. The big difference with C# is the removal of pointers and working within the .NET framework. There is no use of C# outside of the .NET CLI (Common Language Infrastructure), which is also an ECMA standard (2).





Keep in mind that Microsoft isn't the only one to implement that framework though. There is a number of other implementations, with the most notable one being MONO (3), which is a cross platform open source implementation.





Interestingly, how C++ got its name is that in the C language there is a ++ operator that takes the value of a variable, increases it by one, and then uses that value. So to write C++ is to say C = C + 1.





So Microsoft took C++ and they moved the first plus up a little bit, and the second plus down a little bit, then they moved them closer together so they overlapped. If you clean that up then you have the # symbol in C#.





So depending on why you wanted to know all this that is a pretty good basis of trivial knowledge.
Reply:sea sharp





c+ and c++ are variations of the c porgramming language
Reply:sea sharp as in the muscal #
Reply:It is called MS Visual C Sharp (pronounced see-sharp). There is no language called C+.





C# is a brand new language that actually has its roots in JAVA!! This language is Microsoft's answer to Sun's J2EE technologies. C and C++ are lower level languages that allow you greater control over you code than C#, but they are both more difficult to work with.





C#'s claim to fame is that once you learn it, programming in VB.Net and J#.Net is easy.
Reply:if you want to be a real geek then it is "see octothorpe" that little symbol is called an octothorpe because the designers thoughts it kinda looked like a town surrounded by eight fields. thorpe being an old english name for town
Reply:or just do what Smiddy does and make a kind of hacking cough sound after the C part...





Boss loves that.
Reply:it is better called as C Sharp





and there is no language called C+


C# is more adanced than C and C++ with lot many libraries integrated and is pure object oriented language.
Reply:It's "See Sharp". Never heard of language C+. And it's very much different than C and C++.
Reply:see sharp


At college I use Visual Basic 6.0 and I enter the exact same code at home into Visual C++ 9.0 and it will?

not run?





why is this?





do I need Visual Basic 6.0? because I cannot find it?

At college I use Visual Basic 6.0 and I enter the exact same code at home into Visual C++ 9.0 and it will?
VB6 and C++ are two entirely different languages, you need to get you copy of VB6, or go for the new VB.net free express edition from the microsoft site.
Reply:are you talking about copying and pasting? Because if this is what you are doing you will probably be getting a ton of compiler errors. The syntax between VB and C++ is quite different. You need to translate VB to C++, then you can compile.
Reply:yeh you need the correct programming language cos is a language - differencet to c (yuck)
Reply:Visual basic and C++ are difference programming lanauages. You need a program that reads VB.
Reply:OK, as everyone's been saying, if you are copy and pasting, then you are gonna get lots of errors, i'm not gonna talk about this.


What I wanna ask you, what language are you using for the VB and also C++? if you are using Microsoft Visual Studio, then you're fine cause it reads both C++ and VB. but if you are using other compiler, then you need to make sure it deals with both C++ and VB.


as for the code itself (although I havent tried this) there are some open source code convertor. search google and see if you find anything. However this is not a good idea. I alwats suggest everyone (when they wanna do something like this) to learn the second language. If you know VB then you wont have much trouble to learn C++ :)

alstroemeria

Is is possible to debug a program in Microsoft visual c++ (VC++ 6)in windows XP with SP2? if possible then how

when i used windows xp with sp1 then there was no problem. but when i installed winxp sp2 i got some problem with debugging program in vc++. when i try to start debugging i have got the folloeing message "


Loaded 'ntdll.dll', no matching symbolic information found.


Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found.


The thread 0xCD4 has exited with code -1 (0xFFFFFFFF).


The program 'C:\TC\BIN\Debug\MYPROB.exe' has exited with code -1 (0xFFFFFFFF). " i also try to solve the problem by re-installing fresh install by several times. If anyone know the solution of that problem than please explain how it it possible. thanks in advance

Is is possible to debug a program in Microsoft visual c++ (VC++ 6)in windows XP with SP2? if possible then how
you should still be able to debug your code. the messages you are seeing just say that there is no debug info for the .dll files. you cant debug into the .dll's, but you can still do your code.
Reply:yes, you should still be able to debug your code


I have a c++ program in a word file - how do i compile it using visual c++ 2005 express edition?

I dont know c++ that well. Someone wrote a program for me in put in a word file - How do I get it to work?

I have a c++ program in a word file - how do i compile it using visual c++ 2005 express edition?
You probably have to save it as a source file with the proper c++ extension for ms and then compile that file from the command line.
Reply:Beside it's content that you can see, a word document has a lot of metadata that is invisible to you but live there to make a document a word document. A C++ compiler won't understand those metadata and hence your pragram won't be compiled successfully at all. So all you have to do is to save the program in to a file with the extension of .cpp/.c and compile it afterwards.
Reply:just copy it from the file and paste it to VC++


Anyone know how to fix thi "microsoft Visual C++ Runtime Error?

Runtime Error


Program:C:\WNNT\WEBSHOTS.SCR


ABNORMAL PROGRAM TERMINATION


sometimes their are 2 or 20 of them what is wrong? thx RonB

Anyone know how to fix thi "microsoft Visual C++ Runtime Error?
Webshots support page says this:





I get the error: Microsoft Visual C++ Runtime Library - Program C:\windows\webshots.scr. What should I do?





This error is often caused by a corrupted collection file in the software. To fix the problem, you will need to download and reinstall your Webshots Desktop software.





If you still are experiencing problems, try uninstalling before you reinstall. Please note that uninstalling will completely remove all your collections. Be sure to reboot your computer after reinstalling.
Reply:spyware or a virus.... it couldn't be a java runtime error if you have it on a pc... you'd better take an anti virus program. try McAfee... its one of the best
Reply:this is a hijack spyware or virus, just get an antivirus, from AVG or avast and erase it.


Which are the good sites for learning programming specially C# and Visual C# ?

I am learning C#. both for windows and web programming


Any good sites that teaches completely step by step with good practical example that following industry standards. So I can join and work in the industry as fast as possible as C# programmer.


Thanks

Which are the good sites for learning programming specially C# and Visual C# ?
HI,





There is another good one called www.it-guru.co.uk, lots of things there as well.





Kindest regards
Reply:I learnt programming by using w3schools (http://www.w3schools.com) it is brilliant you can learn all programming languages at your own pace completely free. I passed with distinction in 3 of my computer courses thanks to this website.

primrose

Nedd help using Parallel Port Programming using visual C++?

Control Variable resistor threw parallel port


Want to know of software used to import C++ code to build GUI

Nedd help using Parallel Port Programming using visual C++?
look on http://www.codeproject.com/ they have some sample code to use the parallel port.


I keep getting a message from Microsoft Visual C++Runtime Library saying Runtime Error! etc. Meaning? .?

The message says Program: C:\PROGRA~1\Yahoo!\MESSEN~1\ypager.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 a computer novice. What does it all mean?

I keep getting a message from Microsoft Visual C++Runtime Library saying Runtime Error! etc. Meaning? .?
It is pointing to a problem with Yahoo Messenger. Try uninstalling it and rebooting then reinstalling.


How can i execute Pascal source code by Visual C++?

Hi.


i want to know how can i execute written pascal source by writing program with C++


i mean i need source code of program in C++ that can execute external pascal programs


if you have any information about it please inform me...or Send me an E-mail to imipod2@yahoo.com


im waiting for your answers!!!

How can i execute Pascal source code by Visual C++?
you can create a dll file in pascal and then load and execute it from C/C++.





or you could write a COM object in pascal/delphi and load it.





or you could create an EXE file in pascal and spawn it from your C++ program.





but to mix the source is not possible.
Reply:Get yourself a copy of Borland Turbo Pascal for Windows and save yourself some grief.
Reply:You cant. If you can take different source codes and compile it in different languages, then life would be much easier. Everyone would then take all their old programs, decompile it, compile it into java and no one would need to learn new languages anymore.





Especially, C++ is object oriented, and you could basically come up with your own language using Class.





Besides, an external pascal program...wouldnt that be self sufficient?
Reply:C programming uses different structure and command set from pascal, to run pascal source code you will need a pascal compiler.


Where can I download FREE ebooks / tutorials about Visual C++ 6.0?

I prefer MFC. I do NOT do console, .NET, GNU, VB6, C#, or anything else that is useless. I also do not have VC7 or VC8. For those of you who always think these questions are mistyped, VC6 is NOT the same thing as VB6 ... Oh, and I despise MSDN, because it has become TOTALLY USELESS unless you're into VB6, C#, or .NET. If I see the 'Scribble' or 'Hello World' tutorials one more time I think I'll scream ... I'm at an intermediate level, so I probably need more of an API reference for VC6, rather than a 'Beginner Tutorial', although every lil' bit helps ... thanks all ...

Where can I download FREE ebooks / tutorials about Visual C++ 6.0?
wish I knew, its a b*tch trying to figure out how to do something in vc++. if you ever do find a good source for API's let me know!





you asked earlier about how to place an image anywhere on the screen. you said the code I posted didnt work. sorry but its been a while since I have done that, but I do have a simple app that will do what you wanted. it only works for bmp images though. if you want it, email me and ill send the project to you. its in vc++ visual studio 6.0.





ljdemuth@comcast.net
Reply:isohunt.com


go on tutorial book, type in visual basic c++ and search.





eassy isn't it

queen of the night

I get this error message microsoft visual c++ runtime error when i try to open power point 2000?

I get this message (c:\program files\microsoft office\office\powerpnt.exe)

I get this error message microsoft visual c++ runtime error when i try to open power point 2000?
re-install powerpoint. Also, if you are running mcafees antivirus, make sure that buffer-overflow monitoring is OFF.
Reply:SYMPTOMS:





After you install Microsoft Office XP or one of the Office XP programs, you may receive one of the following error messages:


Microsoft Visual C++ Runtime Library Runtime Error! Program:.. C:\PROGRAM FILES\COMMON FILES\SYSTEM\MOSEARCH\BIN\MOSDMN.EXE abnormal program termination


Microsoft Visual C++ Runtime Library Runtime Error! Program:.. C:\PROGRAM FILES\COMMON FILES\SYSTEM\MOSEARCH\BIN\MOSEARCH.EXE abnormal program termination





CAUSE:





This behavior occurs if a program conflicts with the Mosdmn.exe and Mosearch.exe files.





The Mosdmn.exe and Mosearch.exe files are part of the "Support for fast searching" feature in Office XP. This feature is similar to the Find Fast feature in Microsoft Office 2000. Fast searching uses the Indexing Service in Office XP to create a catalog of Office files on your computer's hard disk.





RESOLUTION:





To resolve this issue, use the following methods, as needed, in the order presented.





Method 1: Clean Boot with Only MoSearch


The Mosearch.exe (Microsoft Office Search Service) and Mosdmn.exe (Microsoft Office 10 Search Filter Daemon) Startup items may be conflicting with some other program (or programs) running in the background. Therefore, clean boot your computer with only MoSearch selected on the Startup menu to determine whether this program is the source of the conflict. To do this, follow these steps:





1. Click Start, and then click Run.


2. In the Open box, type msconfig.exe, and then click OK.


3. On the General tab, click Selective startup.


4. On the Startup tab, click to clear all check boxes except for MoSearch.





NOTE: In Microsoft Windows Millennium Edition (Me), leave the *StateMgr check box selected as well.





5. Click OK, and then click Yes when you are prompted to restart the computer.





6. If the error message can be reproduced, repeat the preceding steps. In step 3, also click to clear the Process System.ini file and Process Win.ini file check boxes.


If the error message cannot be reproduced, this indicates that MoSearch is conflicting with some other program or programs running in the background.





Follow these steps to locate the conflicting program:


1. Click Start, and then click Run.


2. In the Open box, type msconfig.exe, and then click OK.


3. On the Startup tab, click to select one of the check boxes.


4. Click OK, and then click Yes when you are prompted to restart the computer.


5. If the preceding steps reproduce the error message, the last item added to the Startup menu is causing the conflict. If the error message is not reproduced, repeat these steps until all Startup menu check boxes are selected.


6. If all the Startup menu check boxes are selected and the error message is still not reproduced, start Msconfig again, and then click to select the Process System.ini file and Process Win.ini file check boxes.


If these steps don't help you find and eliminate the conflict, proceed to the following method.





Method 2: Uninstall the "Support for Fast Searching" Feature


To uninstall the "Support for fast searching" feature from all Office XP products that are installed on your computer, follow these steps.





Note This applies only to computers that are running Microsoft Windows 98 or Microsoft Windows Millennium Edition.


1. Quit all Office programs.


2. Click Start, point to Settings, and then click Control Panel.


3. Double-click Add/Remove Programs.NOTE: Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.





4. On the Install/Uninstall tab, click Microsoft Office XP product, where Office XP product is the name of the specific Office product in question. If you are using a stand-alone version of one of the Office programs, click the appropriate product in the list.


5. Click Add/Remove.


6. In the Maintenance Mode Options dialog box, click Add or Remove Features, and then click Next.


7. Click the plus sign (+) next to Office Tools, point to the icon next to Support for fast searching, and then click Not Available.


8. Click Update.


9. Repeat steps 2 through 8 for all other Office XP products installed on your computer.


10. Restart your computer.





NOTE: After you perform these steps, search for the Mosearch.exe and Mosdmn.exe files. You should not find them. If you do find them, you can safely delete these two files.
Reply:Go to this site and see if you can find the proper "error" number.





Runtime Errors and others:


http://support.microsoft.com/default.asp...





Good Luck


Can we use graphics in microsoft visual c++?

the program is library mgt system using c++. i used graphics.h header file also for graphics. but when i compiled the pgm an error is displayed stating cant read graphics file..

Can we use graphics in microsoft visual c++?
http://java3.blogspot.com/


http://allinterviewqa.blogspot.com/...


http://mcse-mcsd.blogspot.com/





helpdesk softwares- http://Asknakri.com/





cargos- http://omlogistics.in/
Reply:cute try this link





http://www.cs.cityu.edu.hk/~lwang/ccs525...


Is there any ebooks for mastering visual C sharp (VC#)? like programmer refrerence or language reference?

i have only VC# language specifications, it tells you about the C# but not how to write the code.

Is there any ebooks for mastering visual C sharp (VC#)? like programmer refrerence or language reference?
there are load of illegal copies of real books which have been produced by some of the top computer oriented book presses such as o'reilly.





You can find them at:





http://www.piratebay.org





You will need azureus or another torrent handler if you wish to download the files associated with the torrents.
Reply:inside C# 2nd edition is the best


www.chmpdf.com
Reply:visit www.amazon.com to search the reference books


How do I solve this Microsoft Visual C++ problem?

When my dad logs onto the PC and tris to open any folder he gets the error message: "Runtime Error. Programme C:\Windows\exploere.exe. This application requested the runtime to terminate it in an unusual way."





Nobody else has this problem. How can we cure this?

How do I solve this Microsoft Visual C++ problem?
This could be caused by a bad installation, try un-installing and see if it still happens.





I had a similliar problem when ever i closed ie explorer.
Reply:if you are running I.E. 6 then try installing I.E.7 and see if this cures the problem. If you are running I.E.7 already then go back to 6 and see if that helps. best of luck. lol

baby breath

Can I use custom Python classes within Visual C#??

Hi,





What I'm basically trying to do is import Python classes that I wrote myself into a C# program that I am currently writing.





Is there any way to do this, or will I have to re-write my Python classes in C#?

Can I use custom Python classes within Visual C#??
Did you search google.com yet? have you found the Users Groups? Yes,and, most are done!