Showing results 1 to 40 of 93
Search took 0.01 seconds.
Posts Made By: Nemoticchigga
Forum: C Nov 24th, 2008
Replies: 2
Views: 212
Posted By Nemoticchigga
keil software

Is keil software for programming microcontrollers a free tool, or does it need to be purchased with a license? Thanks.
Forum: Motherboards, CPUs and RAM Nov 19th, 2008
Replies: 1
Views: 331
Posted By Nemoticchigga
8051 microcontroller

would this be a spot to post a microcontroller related wiring question?
Forum: C++ Nov 7th, 2008
Replies: 4
Views: 264
Posted By Nemoticchigga
endline

I am writing to a text file. Everything is working fine, except I can not figure out how to start a newline. I have tried

fprintf(txtFile, "%s", "\n");
fprintf(txtFile, "%s",...
Forum: C++ Nov 6th, 2008
Replies: 3
Views: 172
Posted By Nemoticchigga
Re: char to hexidecimal

what I want is something like this

char buffer[10];
buffer[0] = 0x5F;
TextBox->Text = buffer[0];


i need to cast or a function to convert or something that I dont know about to get the text box to...
Forum: C++ Nov 6th, 2008
Replies: 3
Views: 172
Posted By Nemoticchigga
char to hexidecimal

I have a buffer of chars. I want to display them in a text box as hex. is there a simple way to do this? Thanks.
Forum: C++ Oct 16th, 2008
Replies: 1
Views: 207
Posted By Nemoticchigga
deleting a file

I want to delete a bitmap. How do I do this in c++.

DestBitmap->Save("TempImage2.bmp");
.
.
.
.
.
//later something like
Delete("TempImage2.bmp");
Forum: C++ Oct 1st, 2008
Replies: 3
Views: 212
Posted By Nemoticchigga
reducing flicker

I am drawing on a bit my, then re-loading the bitmap(to erase it) then drawing on it again at 100Hz. I am getting flicker. Is there a way to reduce this flicker? Or a better way to do this than to...
Forum: C++ Sep 18th, 2008
Replies: 2
Views: 362
Posted By Nemoticchigga
Re: drawline

This is the code I use to load the image

Map->Image = System::Drawing::Image::FromFile("test_map1.bmp");
Map->Height = Map->Image->Height;
Map->Width = Map->Image->Width;
Map->Left =...
Forum: C++ Sep 18th, 2008
Replies: 2
Views: 362
Posted By Nemoticchigga
drawline

How do you draw on an image in visual studio 2005 and get it to stay? Ive can get it to draw, but it flickers on resize and disappears when the resize is done. Any ideas?
Forum: C++ Sep 10th, 2008
Replies: 4
Views: 289
Posted By Nemoticchigga
seperating a decimal

How would one seperate a decimal into 2 numbers, the left and right sides of the decimal?

float example = 131.14567

into...

int left = 131
float right = .14567

thanks.
Forum: C++ Sep 8th, 2008
Replies: 3
Views: 398
Posted By Nemoticchigga
Forum: C++ Sep 8th, 2008
Replies: 3
Views: 398
Posted By Nemoticchigga
reading a text file

I am attempting to read a text file.

ifstream indata;
indata.open(filename);
if(!indata)
{
// file couldn't be opened
}
else
{
Forum: C++ Aug 13th, 2008
Replies: 4
Views: 382
Posted By Nemoticchigga
Re: scrollbox

thanks!
Forum: C++ Aug 13th, 2008
Replies: 4
Views: 382
Posted By Nemoticchigga
Re: scrollbox

In borland I could place a picture box on the scrollbox and it would take care of scrolling. I was wondering if there is a "scrollbox" to place my picturebox on in windows forms to do the same...
Forum: C++ Aug 13th, 2008
Replies: 4
Views: 382
Posted By Nemoticchigga
scrollbox

Does anyone know if vs2005 has the borland equivilent of a "scrollbox"? Thanks.
Forum: IT Professionals' Lounge Aug 11th, 2008
Replies: 1
Views: 512
Posted By Nemoticchigga
Compiling for different systems

I am current working on developing software in SUSE 10.2. The program works correctly, and then i statically compile it and run in DamnSmallLinux, and as soon as the program runs i get the...
Forum: C++ Aug 6th, 2008
Replies: 1
Views: 508
Posted By Nemoticchigga
winsock help

I am trying to run a simple program to read ethernet using UDP. Here is the code, but it always receives -1 for 'error', but I did it by the book. Do you guys see the problem? Thanks.

//enum...
Forum: C++ Jul 30th, 2008
Replies: 3
Views: 292
Posted By Nemoticchigga
Re: simple thread question

ok, thanks. Also, If I am passing a class into my thread function, and use the same class in a different thread, but a different function of the class, can they operate in parellel, or would I...
Forum: C++ Jul 30th, 2008
Replies: 3
Views: 292
Posted By Nemoticchigga
simple thread question

When can you determine if you are using too many threads? Assuming I have complete control and mutex locks and what not, when does it slow my program down, rather than speed it up by splitting up...
Forum: C++ Jul 29th, 2008
Replies: 2
Views: 367
Posted By Nemoticchigga
thread abort

I am running a thread that does something, then sleeps for a while. If the program closes it continues to sleep to completion. How do I get it to abort immediatly, even if in the middle of...
Forum: C++ Jul 24th, 2008
Replies: 1
Views: 226
Posted By Nemoticchigga
queue ?

I am attempting to use a queue. I am doing it just like an example i read. I am doing a vs2005 form applicaiton.

#pragma once
#include <queue>

public ref class...
Forum: C++ Jul 22nd, 2008
Replies: 8
Views: 365
Posted By Nemoticchigga
Re: function being skipped?????

The problem had to do with the optimization. Once I took it from "maximize speed" to "no optimization" it worked fine. Dont know how that effects everything optimization wise, but for now it will...
Forum: C++ Jul 22nd, 2008
Replies: 8
Views: 365
Posted By Nemoticchigga
Re: function being skipped?????

It is really basic code, a while(1) in a thread, that calls a function. I have even tried copying and pasting the contents of the function and it skips all that. Tried cleaning, you name it ive...
Forum: C++ Jul 22nd, 2008
Replies: 8
Views: 365
Posted By Nemoticchigga
function being skipped?????

Has anyone ever seen a function call just get skipped? I am running in debug mode and it wont let me set a break point on the call and when i step to it it goes right over to the next line, no...
Forum: C++ Jul 22nd, 2008
Replies: 5
Views: 318
Posted By Nemoticchigga
Re: conversion from char[]

is there a way to do this same thing, only with a short.

char buffer[512] = "Hello World";
// allocate memory for the new string
word* ptr = new word[strlen(buffer)+1];
// now copy
strcpy(ptr,...
Forum: C++ Jul 22nd, 2008
Replies: 5
Views: 318
Posted By Nemoticchigga
conversion from char[]

I am trying to put the contents of a char buffer[512] into a word* (type def as data type short). How do I do this? I have tried memcpy but am either getting an exception or it will run but the...
Forum: C++ Jul 21st, 2008
Replies: 1
Views: 224
Posted By Nemoticchigga
linker error

I have a vs2005 forms app, I have added a header file with a bunch of functions, but now i get a bunch of LNK2005 errors, one for every function. How do I resolve this? Do I need to put them in a...
Forum: C++ Jul 15th, 2008
Replies: 0
Views: 358
Posted By Nemoticchigga
ethernet

I am using the winsock component in vs2005. I have tried sending and recieving strings. The event of data arriving triggers and runs the following code...

private: System::Void...
Forum: C++ Jul 14th, 2008
Replies: 0
Views: 210
Posted By Nemoticchigga
winsock

In vs2005 there is a winsock component, how do you receive data using the component? I found a ->SendData(blah), but cant find a receive. Does anyone know how to receive with this component? ...
Forum: C++ Jul 1st, 2008
Replies: 2
Views: 247
Posted By Nemoticchigga
Forum: C++ Jul 1st, 2008
Replies: 2
Views: 247
Posted By Nemoticchigga
form control

I am trying to open 2 forms when I start my vs2005 project. The main form, and a second form whose class is created, and then ->show. It shows both forms, but you can control either one. What I...
Forum: C++ Jun 19th, 2008
Replies: 1
Views: 282
Posted By Nemoticchigga
thread

I have a program with a bunch of threads running. I kill them all at the end of the program. I have stepped through and seen them all abort. Is there a way to see (since I cant when stepping...
Forum: C++ Jun 18th, 2008
Replies: 2
Views: 709
Posted By Nemoticchigga
reading a txt file

I want to read each line of text file and store each line into a giant buffer so I can look at all the contents. How would I do this?

int _tmain(int argc, _TCHAR* argv[])
{
ifstream indata; //...
Forum: C++ Jun 10th, 2008
Replies: 0
Views: 174
Posted By Nemoticchigga
2 port problem

I have a server running using winsock2.h TCP/IP. I open two ports on my pc, and then in a different application connect and send and receive to and from the server respectivly. In my client...
Forum: C++ May 28th, 2008
Replies: 3
Views: 210
Posted By Nemoticchigga
Re: exception

Hit the button too early, I edited it. :)
Forum: C++ May 28th, 2008
Replies: 3
Views: 210
Posted By Nemoticchigga
exception

private: delegate System::Void delegate_function(void);

if(this->InvokeRequired)
{
AsyncCallback ^ac = gcnew AsyncCallback(&WCS::MainForm::delegate_function_callback);
delegate_function ^df = gcnew...
Forum: C++ May 23rd, 2008
Replies: 1
Views: 209
Posted By Nemoticchigga
errors

I am using the begininvoke and endinvoke methods in visual studio 2005.

private: System::Void button_run_Click(System::Object^ sender, System::EventArgs^ e)
{
...
Forum: C++ May 23rd, 2008
Replies: 0
Views: 224
Posted By Nemoticchigga
exception

String^ comPort = "COM" + this->RS232CommPortNum->Value;
int baudRate = Convert::ToInt32(this->cbBaudRate->Value);
com = gcnew SerialPort(comPort,...
Forum: C++ May 22nd, 2008
Replies: 2
Views: 355
Posted By Nemoticchigga
Re: Invoke and threads

Could someone at least explain invoke and how it is used? or link me to something that may make sense. Ive been googling and cant find anything that I understand. Thanks either way.
Forum: C++ May 21st, 2008
Replies: 2
Views: 355
Posted By Nemoticchigga
Invoke and threads

All my communication using this delegate and function are great between forms, but this thread for receiving compiles and all, but then throws this error. I have posted the important sections of my...
Showing results 1 to 40 of 93

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 9:48 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC