Click here to Skip to main content
15,894,343 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionChanging a C++/CLI project from static lib to DLL causing app to crash under Win7 but works under WinXP Pin
TrevorPT13-May-11 7:20
TrevorPT13-May-11 7:20 
AnswerRe: Changing a C++/CLI project from static lib to DLL causing app to crash under Win7 but works under WinXP Pin
John Schroedl13-May-11 11:01
professionalJohn Schroedl13-May-11 11:01 
GeneralRe: Changing a C++/CLI project from static lib to DLL causing app to crash under Win7 but works under WinXP Pin
TrevorPT13-May-11 11:59
TrevorPT13-May-11 11:59 
GeneralRe: Changing a C++/CLI project from static lib to DLL causing app to crash under Win7 but works under WinXP Pin
John Schroedl13-May-11 14:31
professionalJohn Schroedl13-May-11 14:31 
GeneralRe: Changing a C++/CLI project from static lib to DLL causing app to crash under Win7 but works under WinXP Pin
TrevorPT16-May-11 11:19
TrevorPT16-May-11 11:19 
AnswerRe: Changing a C++/CLI project from static lib to DLL causing app to crash under Win7 but works under WinXP Pin
jschell13-May-11 12:32
jschell13-May-11 12:32 
AnswerRe: Changing a C++/CLI project from static lib to DLL causing app to crash under Win7 but works under WinXP Pin
TrevorPT17-May-11 6:12
TrevorPT17-May-11 6:12 
QuestionPassing an ArrayList by Reference? [modified] Pin
VonHagNDaz13-May-11 2:39
VonHagNDaz13-May-11 2:39 
Hi guys, I'm having a small problem, and I'd like to know what you guys think.

User.h:
void User::getJobs(ArrayList^ jobs)
{
	jobs = this->jobs;
}


UserForm.h:
UserForm(User^ currentUser)
		{
			InitializeComponent();
			//
			//TODO: Add the constructor code here
			//
			this->user = gcnew User();
			this->allJobs = gcnew ArrayList();

			Job^ currentJob = gcnew Job();
			ListViewItem^ item = gcnew ListViewItem();

			this->user = *currentUser;

			this->user->getJobs(this->allJobs);


			for(int i = 0; i < allJobs->Count; i++)
			{
				currentJob = (Job^)allJobs[i];

				String^ temp = "";
				currentJob->getCustomerName(temp);
				item->SubItems->Add(temp);

				temp = "";
				currentJob->getProjectName(temp);
				item->SubItems->Add(temp);

				Job::EN_PRIORITY^ priority = Job::EN_PRIORITY::EN_PRIORITY_0;
				currentJob->getPriority(priority);
				switch(*priority)
				{
				case Job::EN_PRIORITY::EN_PRIORITY_0:
					item->SubItems->Add("NONE");
					break;
				case Job::EN_PRIORITY::EN_PRIORITY_1:
					item->SubItems->Add("1");
					break;
				case Job::EN_PRIORITY::EN_PRIORITY_2:
					item->SubItems->Add("2");
					break;
				case Job::EN_PRIORITY::EN_PRIORITY_3:
					item->SubItems->Add("3");
					break;
				case Job::EN_PRIORITY::EN_PRIORITY_4:
					item->SubItems->Add("4");
					break;
				case Job::EN_PRIORITY::EN_PRIORITY_5:
					item->SubItems->Add("5");
					break;
				default:
					item->SubItems->Add("NONE");
					break;
				}
				listViewAllJobs->Items->Add(item);

				//add time stuff once I figure it out
			}
		}


I can see that when getJobs() completes job in Job.h equals the values I'm trying to retrieve, but once the function returns, this->allJobs is blank. Any ideas?
[Insert Witty Sig Here]
modified on Friday, May 13, 2011 8:54 AM

AnswerRe: Passing an ArrayList by Reference? Pin
John Schroedl13-May-11 3:29
professionalJohn Schroedl13-May-11 3:29 
GeneralRe: Passing an ArrayList by Reference? Pin
VonHagNDaz13-May-11 4:15
VonHagNDaz13-May-11 4:15 
QuestionTimer() - anything faster? Pin
Cyclone_S12-May-11 10:47
Cyclone_S12-May-11 10:47 
AnswerRe: Timer() - anything faster? Pin
Sander Rossel12-May-11 10:57
professionalSander Rossel12-May-11 10:57 
GeneralRe: Timer() - anything faster? Pin
Cyclone_S12-May-11 13:49
Cyclone_S12-May-11 13:49 
AnswerRe: Timer() - anything faster? Pin
Luc Pattyn12-May-11 14:00
sitebuilderLuc Pattyn12-May-11 14:00 
AnswerRe: Timer() - anything faster? Pin
Sander Rossel12-May-11 20:22
professionalSander Rossel12-May-11 20:22 
AnswerRe: Timer() - anything faster? Pin
Dave Doknjas12-May-11 12:00
Dave Doknjas12-May-11 12:00 
AnswerRe: Plugging shamelessly Pin
Luc Pattyn12-May-11 12:50
sitebuilderLuc Pattyn12-May-11 12:50 
AnswerRe: Timer() - anything faster? Pin
LiangGuangLin3-Jul-11 18:50
LiangGuangLin3-Jul-11 18:50 
QuestionStrange: CreateWindow fails, but it doesn't Pin
Foothill12-May-11 8:13
professionalFoothill12-May-11 8:13 
AnswerRe: Strange: CreateWindow fails, but it doesn't Pin
John Schroedl12-May-11 11:02
professionalJohn Schroedl12-May-11 11:02 
GeneralRe: Strange: CreateWindow fails, but it doesn't Pin
Foothill12-May-11 11:30
professionalFoothill12-May-11 11:30 
QuestionHow to read data from COMPORT Pin
bqhoang10-May-11 16:46
bqhoang10-May-11 16:46 
AnswerRe: How to read data from COMPORT Pin
Luc Pattyn10-May-11 16:56
sitebuilderLuc Pattyn10-May-11 16:56 
AnswerRe: How to read data from COMPORT Pin
LiangGuangLin3-Jul-11 19:03
LiangGuangLin3-Jul-11 19:03 
GeneralRe: How to read data from COMPORT Pin
bqhoang3-Jul-11 19:46
bqhoang3-Jul-11 19:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.