Click here to Skip to main content
15,886,038 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Dataset filter to show all records Pin
Mycroft Holmes5-Feb-08 15:30
professionalMycroft Holmes5-Feb-08 15:30 
GeneralRe: Dataset filter to show all records Pin
coldude12-Feb-08 14:56
coldude12-Feb-08 14:56 
GeneralRe: Dataset filter to show all records Pin
Mycroft Holmes12-Feb-08 15:59
professionalMycroft Holmes12-Feb-08 15:59 
Generalstay in same page with error msg else redirect to another page Pin
uglyeyes4-Feb-08 15:10
uglyeyes4-Feb-08 15:10 
GeneralRe: stay in same page with error msg else redirect to another page Pin
Christian Graus4-Feb-08 17:14
protectorChristian Graus4-Feb-08 17:14 
GeneralIO stream error Pin
codingrocks4-Feb-08 14:21
codingrocks4-Feb-08 14:21 
GeneralRe: IO stream error Pin
Christian Graus4-Feb-08 17:18
protectorChristian Graus4-Feb-08 17:18 
GeneralInterfacing vb.net and pseudo-embedded C Pin
supercat94-Feb-08 10:01
supercat94-Feb-08 10:01 
I am developing an embedded C application for a small microcontroller. One thing I have found useful in the past was to write a DOS-based PC front end which would simulate the main aspects of the target environment. I would thus have three pieces of code:

-1- The common code, which would run identically on the PC and in the final application, thus allowing it to be debugged on the PC.

-2- The PC-side code for routines like get_time_of_day(), set_time_of_day(), switch_motor(), check_switch(), etc. would virtualize them as appropriate. The user could turn switches on and off via the keyboard, as well as adjust the relationship between real time and the time reported to the application. Hardware functions like motors would be displayed on screen.

-3- The microcontroller code for those routines would perform them on real hardware.

Previously, I've used Turbo C for DOS to do the PC front end, but that's rather clunky. I'd like to migrate to using Windows. I've done a little Windows programming in C, but it would seem like it would be more convenient to have a vb.net application maintain the user interface and have it communicate somehow with a C application which would simulate the microcontroller.

I wouldn't be looking to do a super-detailed hardware simulation, but rather a more general one (e.g. I'd use a PC version of the get_time_of_day() function to simulate getting time of day, rather than trying to write a PC function to simulate pulsing the processor pins necessary to communicate with the real-time clock chip).

Has anyone done anything similar, or can anyone offer any advice? Two notable ceaveats:

-1- It would not be acceptable for the VB program to simply call a C function which would have to completely finish execution before control could return to VB, but...

-2- It would be acceptable to have the C application only yield control during its own check_event() and wait_event() procedures. I don't feel a need to simulate interrupts and other such features.

The first requirement would suggest that simply using a DLL would probably not work well, unless I used multi-threading and had a means for threads to communicate. Having applications that share messages with each other would seem a better solution.
GeneralRe: Interfacing vb.net and pseudo-embedded C Pin
MikeMarq4-Feb-08 18:51
MikeMarq4-Feb-08 18:51 
GeneralRe: Interfacing vb.net and pseudo-embedded C [modified] Pin
supercat95-Feb-08 8:10
supercat95-Feb-08 8:10 
Generalauto update update panel Pin
solarthur014-Feb-08 3:47
solarthur014-Feb-08 3:47 
GeneralRe: auto update update panel Pin
Christian Graus4-Feb-08 12:27
protectorChristian Graus4-Feb-08 12:27 
QuestionCan a Stored Proc works with Acces Pin
Vimalsoft(Pty) Ltd4-Feb-08 2:00
professionalVimalsoft(Pty) Ltd4-Feb-08 2:00 
AnswerRe: Can a Stored Proc works with Acces Pin
Steven J Jowett4-Feb-08 2:08
Steven J Jowett4-Feb-08 2:08 
GeneralRe: Can a Stored Proc works with Acces Pin
Vimalsoft(Pty) Ltd4-Feb-08 2:10
professionalVimalsoft(Pty) Ltd4-Feb-08 2:10 
AnswerRe: Can a Stored Proc works with Acces Pin
Guffa4-Feb-08 2:12
Guffa4-Feb-08 2:12 
GeneralEncrypting and Decrypting Files Pin
duo!@#4-Feb-08 1:39
duo!@#4-Feb-08 1:39 
GeneralRe: Encrypting and Decrypting Files Pin
Steven J Jowett4-Feb-08 2:19
Steven J Jowett4-Feb-08 2:19 
GeneralRe: Encrypting and Decrypting Files Pin
duo!@#5-Feb-08 0:18
duo!@#5-Feb-08 0:18 
GeneralRe: Encrypting and Decrypting Files Pin
Mark Churchill4-Feb-08 14:35
Mark Churchill4-Feb-08 14:35 
Generalexcel file... Pin
Naunt3-Feb-08 23:37
Naunt3-Feb-08 23:37 
GeneralRe: excel file... Pin
yogesh_kumar_agarwal4-Feb-08 1:02
yogesh_kumar_agarwal4-Feb-08 1:02 
GeneralRe: excel file... Pin
Naunt4-Feb-08 20:05
Naunt4-Feb-08 20:05 
AnswerRe: excel file... Pin
Scubapro4-Feb-08 1:17
Scubapro4-Feb-08 1:17 
GeneralRe: excel file... Pin
Naunt4-Feb-08 20:13
Naunt4-Feb-08 20:13 

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.