Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Re: Antialiased lines
Another thing ... I remember that I had written it for a reverse Y VideoBuffer (like Windows DIB ... left -> right, DOWN -> UP) ... for a 'standard' frame VideoBuffer with the origin in left top corner (left -> right, up -> down) you must change the line in the previous...
Re: Antialiased lines
Try this ...
I assume that:
The color (r, g, b) are float in [0, 1] space (you can easy change it in to [0,255])
VideoBuffer is a 'unsigned char *' (unsigned char pointer) to RGB 8/8/8 = 24bit video buffer
VideoDimX, VideoDimY is the resolution X and Y of VideoBuffer...
Yes you can call function VC ... but not directly!
The method is to create a DLL with VC ... with the functions that you want to use in VB ... and then you can call the eported function from your VB program.
How to call a DLL function from VB...
Simply using the VDM (Virtual DOS Machine) of XP ... windowed or full screen mode ... which is directly called from 16bit application ... when it run ... when you launch it (double click, or via RUN or CMD command line) ...
but ... you must have the files 'autoexec.nt', 'config.nt' and...
Re: VC++ 6 halt !!!!!!!!
I tryed this code on my VisualC++ 6.0 SP6 (in a Win32 console application) ... and work fine ... it must work ;o)
// have you this include?
#include <malloc.h>
int test()
{
char* temp=new char [3] ;
//check for NULL ptr ... if 'new' don't work ...
Re: VC++ 6 halt !!!!!!!!
Your code crash on 'delete' operator!!!
Try this ...
// template declaration for 'strcpy' function
#include <string.h>
test ()
{
char* temp=new char [4] ;
// with ...
// temp="123";
// you REassign to 'temp' the pointer of static ARRAY "123" ...
// you don't...
I use wxWidgets (wxWindows) ... an opensource portable GUI.
Cross-platform GUI programming in C++
wxWidgets gives you a single, easy-to-use API for writing GUI applications on multiple platforms. Link with the appropriate library for your platform (Windows/Unix/Mac, others coming shortly) and...
Is a pointer to a function ... look this example:
//Your typedef struct
typedef struct _selection
{
char prompt[MAX_PROMPT_LEN];
int (*function)(int);
int fn_arg;
} SELECTION;
SELECTION mySel;
//various func with same return value and passing...
The best (old) book on Windows C programmnig ... using Win32 API ... is the 5Th edition of Programming Windows by Charles Pelzold (1998 MSPress) ... you can try to get it here ;o) ... in HelpFileFormat...
reverse coler with VC++
Hi ...
It's all right...
FindWindow(LPCTSTR lpszClassName, LPCTSTR lpszWindowName ) function is a good method to find a window ... and the "CLASS NAME" (LPCTSTR lpClassName ... first parameter) is a good idea to search a window !
The class name of MSWord 2003 is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.