Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
6
Posts with Upvotes
5
Upvoting Members
4
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
~65.1K People Reached
About Me

programmer

Interests
programming

29 Posted Topics

Member Avatar for samaru
Member Avatar for The Shadows

just wanted to let you know that you've re-discovered the 'bubble sort' algorithm. The code looks fine except that you should use 'x += 1' instead of 'x = x + 1' -- it's faster. you may not see much of a difference in a loop of that many iterations …

Member Avatar for bonethugs
1
416
Member Avatar for scott_6169

[QUOTE=scott_6169]How can I see what it is printing to the screen. [/QUOTE] try going to your dos window first, navigating to the appropriate directory and then running your .exe. Or open a dos window and type in full name and path of your .exe

Member Avatar for Ghazanfar Ali
1
204
Member Avatar for Him3

[QUOTE=Him3]Hi, Everybody, I wrote the program to connect to the Microsoft Sql server 2000. I have also defined constrains and triggers on Tables of SQL. Now I want to catch the error message generated by the triggers or constraints in c prog and want to show it to user. Can …

Member Avatar for monu chauhan
0
475
Member Avatar for BlackDice

there is of course a way to put settings in your registry that will allow you to right-click on a dll or ocx file and then click Register or Unregister fromt the context menu. However, for those of you who don't like messing with your registry (or don't know how) …

Member Avatar for hihihi hahaha
0
627
Member Avatar for rookie-C

[size=2][color=#0000ff]Use the shellExecute function. There's plenty of documentation on it in the MSDN. I copied this from a piece of one of my functions which wouldn't actually open notepad, it opens from a filename, in which case if it was a file with a *.txt extension it would open up …

Member Avatar for jephthah
0
7K
Member Avatar for gemini2011
Member Avatar for BlackDice
Member Avatar for venomlash
0
122
Member Avatar for BlackDice

this is a wrapper around the AnimateWindow API. this allows random animations in a dialog. I just call it in the dialog's OnInitDialog() handler. The 'fade' effect has not been implemented because I didn't like the idea of having to call RedrawWindow or something like that because sometimes the borders …

Member Avatar for Satil
0
158
Member Avatar for BlackDice

Returns the name of a folder in a CString after allowing user to browse for it. This is just a wrapper around the SHBrowseForFolder API, but it's great for only allowing a user to browse for folders!

0
197
Member Avatar for BlackDice

I don't know if this function may be helpful to anyone, but I just converted from a VB function recently to C++. I'm converting a text file string that is nine characters to a decimal value that has funny characters in it because it is exported from an old VAX. …

0
199
Member Avatar for BlackDice

I don't know if this function may be helpful to anyone, but I just converted from a VB function recently to C++. I'm converting a text file string that is nine characters to a decimal value that has funny characters in it because it is exported from an old VAX. …

0
61
Member Avatar for BlackDice

I've never been to school for programming (other than some very preliminary VB5 classes in a Data Processing course). The company I now work for taught me what I needed to know about VB6 and database design. I then taught myself C++ and some minor DirectX programming and think that …

Member Avatar for majestic0110
1
336
Member Avatar for animesh

[QUOTE=animesh]How to use Data base connectivity in c++, files are not very useful..[/QUOTE] Depends on which technology you want to use. ODBC, ADO, DAO, OLE DB? You have to be more specific. If you want to use ADO, let me know and I'll try to post some stuff. :lol:

Member Avatar for crazylunatic
1
381
Member Avatar for BlackDice

I have a row of images on the left side of a web page that act as buttons with javascript for the changing of the image if it's rolled over. That works fine on most of the pages because besides that they're all text. Now I've created a few new …

Member Avatar for BlackDice
0
149
Member Avatar for wacko

[QUOTE=wacko]Here is my date code I just put this in but it is showing Saturday, December 30, 1899 and wont change. What is wrong??? Wacko [url="http://www.wackosonline.com"]www.wackosonline.com[/url][/QUOTE] I can't help you because I have no idea what you're doing

Member Avatar for Drew
0
82
Member Avatar for Chester1

add a webbrowser control to your program and associate a variable with it, then in OnInitDialog() put this: [CODE] m_ctlBrowser.Navigate("YOURURL",NULL,NULL,NULL,NULL); [/CODE] or if you just want it to execute without a dialog I think you can use the ShellExecute() function and send it a string for the URL as a …

Member Avatar for BlackDice
0
88
Member Avatar for Asif_NSU

> well, i have seen the page but i could not find anything useful, there were something about reading function keys but nothing about reading reading multiple keys or different keystates. try GetAsyncKeyState() to get the key you want. As for the arrow key problem, you shouldn't rely on windows …

Member Avatar for gusano79
0
183
Member Avatar for chound

[QUOTE=chound]How do I use the resources I created in Visual C++. For eg, I created a dialog box. How do I call that in my program. :cry:[/QUOTE] if you're using vc6, right click on the dialog, go to ClassWizard. It should prompt you to add a class. once you do …

Member Avatar for BlackDice
0
99
Member Avatar for BlackDice

Polymorphism is what makes using inheritance so powerful ( in my opinion). Here's a quick example of it using objects. This example uses 3 classes: CCar, and CSportsCar and CLuxuryCar which are derived from CCar. [code]class CCar { //constructors and other stuff... virtual CString GetType() { return "Car";) } ; …

Member Avatar for Dani
0
112
Member Avatar for meff_04

C++ is the object-oriented version of C. Objects are a lot easier to work with, and with inheritance and polymorphism, eventually you can reuse just about any class (base for an object) over and over again. The 'Visual' part comes in with Microsoft's interface for easily building GUI applications, which …

Member Avatar for meabed
2
312
Member Avatar for dirs

You should be able to just type in CPlayingCard::deal_hands() (if CPlayingCard is the name of your base class), and that should be all there is to it!!

Member Avatar for BlackDice
0
135
Member Avatar for ALAN 007

if you're not using a database, I think the best route to go would be to add the items to a drop-down list combobox, with an itemdata being their price for each item. Each time an item in the combo is clicked the itemdata (price) would be displayed in the …

Member Avatar for ALAN 007
0
122
Member Avatar for BlackDice

I'm trying to change my default browser for IE to Google. Following the instructions in the Help, it says to click the Search button on the toolbar, then 'Customize' and choose from the options displayed. But every time I click the customize button, it starts trying to go to some …

Member Avatar for BlackDice
0
166
Member Avatar for BlackDice

Is there a way in VB to use a '#define' macro something like in c++? In C++ I can do this: #define CHECKPTR if(!ptr) AfxMessageBox("Pointer is null"); then everywhere I wanted to do that check, (of course the pointer would always have to be named 'ptr'), I could just write …

0
74
Member Avatar for zhangshi

from my understanding typeid should be used like this: int i; const type_info& info = typeid(i); cout << "Class name: " << info.name(); hope this helps!

Member Avatar for BlackDice
0
155
Member Avatar for ZoilaResendiz

I think that's probably a problem with your references. Go to Project->References and look at your references, it should tell you if something is missing. and if you're using ado, make sure you're using adodb.connection

Member Avatar for BlackDice
0
238
Member Avatar for L3fty19
Member Avatar for TheOX1

I have no idea what you're talking about, but if you elaborate more, I may be able to help

Member Avatar for BlackDice
0
153

The End.