|
I need source code for a project called "Magic Square." If there's anyone out there who knows the code or can help me find it, I'd really appreciate it.
|
|
|
|
|
hy,
u can get source for Magic Square from the following sites....
http://user.chollian.net/~brainstm/source.htm (in C)
http://www.brokersys.com/~jguthrie/MagicSquare.java (in Java)
http://perso.club-internet.fr/spip/autres/CarreMagique.java (in Java)
Enjoy
|
|
|
|
|
Hi!
I am an engineering student from India, and am working on a project in Visual Basic-6.0. I need a little help with my project, and have gone through a lot of sites to solve my problem, but to no avail.It was then that I stumbled on to this site, and decided to set up a message.
Well a part of my project needs to acquire data from an ADC(Analog to Digital) card connected to the serial port and plot the data in real time.The only two controls which I can think of are MSComm and MS Chart.But I have a few questions as I have never worked with these controls before.The questions are as follows -
1. Is it possible using MS Chart to plot data in real time?
If not - Is there any other way-Maybe something like an activeX control available which could help me in real time data acquisition?
If it is - how do I go about it?I mean do I use dynamic arrays?If so, then how do I redimension them at run time?
2.Is it possible to set cursors(in the form of horizontal and vertical lines) on the plot?
3.Can I acquire data through an MSComm control from an ADC card and store it in a dynamic array?I want to avoid the modem.
Well, lots of questions , but no answers.I would really appreciate your help.Thanks for your time!!
Regards,
Alok Pradhan.
|
|
|
|
|
Hi,
I'm wanting to detect (on a mouse move) whether the mouse is over a popup menu (for which I have a handle). Does anyone have any ideas about how to go about finding the size and position of a menu on the screen, or even just doing a hit test? I cannot find anything in any documentation, but am probably looking in the wrong place!!!
thx
|
|
|
|
|
You'll get a WM_MENUSELECT message when the mouse moves over or off a menu item.
--Mike--
http://home.inreach.com/mdunn/
This must be Thursday. I never could get the hang of Thursdays...
|
|
|
|
|
I only seem to get this message when moving onto the menu item, not when it comes off (which is what I really need). MenuItemFromPoint sounds like it should do what I want, but it gives incorrect results under NT, although seems OK under '98.
Has anyone else had any trouble with MenuItemFromPoint?
|
|
|
|
|
Hi,
I'm wanting to detect (on a mouse move) whether the mouse is over a popup menu (for which I have a handle). Does anyone have any ideas about how to go about finding the size and position of a menu on the screen, or even just doing a hit test? I cannot find anything in any documentation, but am probably looking in the wrong place!!!
thx
|
|
|
|
|
Hi all, I interested in finding some code or articals on adding features to IE. I have seen alot of programs that do this , like adding a new menu bar etc. An sort of direction on how to dothis would be really helpful thanks!
regards
JAred Allen.
Contact allen_jared@hotmail.com
|
|
|
|
|
Here's a couple starting points.
URL: http://www.codeproject.com/atl/rbdeskband.asp
URL: http://www.codeproject.com/tools/rbcolorpicker.asp
|
|
|
|
|
While using 'DLL' created with 'VC++' in VB i am getting an error "Bad DLL calling convention".
Is it the problem with declaration of Calling conventions in vc++?
How to avoid it?
|
|
|
|
|
I don't know VB, but you need to export the function with the calling convention that VB uses. Since the default in VC is __cdecl, I imagine the right convention is __stdcall. For example:
extern "C" __declspec(dllexport) void __stdcall MyFunc() {}
(The order of the tokens may be off - I never can remember which one goes where.)
--Mike--
http://home.inreach.com/mdunn/
This must be Thursday. I never could get the hang of Thursdays...
|
|
|
|
|
I feel a little sheepish asking this but could anybody pl. write an easy to follow beginners article on using source control. E.g. I'm a student developer who rarely uses source control at home for code and stuff cause I think I'll get a heartburn going through documentation. Show me the easy way out + tips and tricks for easy usability.
Thanks a bunch.
|
|
|
|
|
Hello,
I was wondering if anyone knows of a way to get some kind of system id from a PC. I've looked at:
- GetVolumeInformation to get the hard-drive serial number but this is often the same if drives are ghosted from the same image.
- Netbios to get the MAC Address of the Ethernet Adapter. The problem is that Microsoft says that this "does not work reliably on Windows 95 or Windows 98".
Thanks,
Raed
|
|
|
|
|
Heres the deal,
Marketing want's a web view (IWebBrowser2) in a property page of a wizard in my app (piece of cake).
The web page to be displayed will contain a FORM section with a bunch of yet-to-be-determined input controls with a "hidden" submit button - they want the data to be sent when some other control outside the IWebBrowser2 is activated (the apply button).
The big question is - how do I programaticaly "click" on the submit button?
1) Is there a way to directly access the submit functionality with ease?
2) Or do I need to enum all the items and data in the FORM section and compose a custom IWebBrowser2::Navigate call?
Thanks for any help.
|
|
|
|
|
Dear friends:
I am a student in Beijing Polytechnology University.
I am learning computer application.This year I will graduate,so I
am preparing my project-- The image identification of the number plate
uesed VC or C,but I find few data in China.I want you help me.
My email: zx8@sina.com
Thanks a lot lot lot lot lot lot lot lot lot lot lot lot lot lot lot
lot lot lot lot lot lot lot lot lot lot ...
Yours sincerely zx
|
|
|
|
|
I have created two exes(MFC).I am posting a pointer to the structure thro' PostThreadMessage
from one exe
(struct message
{
int messageid;
CString messagedescription;
};
the members are initialized
)
The other exe should receive the pointer posted by the thread from other exe & it should display the member values.But, in my case the structure is getting posted successfully !But, I am getting some junk values in the receiving exe.
How can I get the desired values, then ?
Y.Yamini Devi
|
|
|
|
|
You can't pass data between different programs like that. Each program has its own address space, and pointers in one app don't make sense in another app.
Either switch to WM_COPYDATA or use memory-mapped files.
--Mike--
http://home.inreach.com/mdunn/
This must be Thursday. I never could get the hang of Thursdays...
|
|
|
|
|
There is more way to share data between 2 or more apps.
Write a simple dll and set the variable you want to share as followed:
#pragma data_seg("shared")
int x=0;
#pragma data_seg()
#pragma comment(linker,"/SECTION:shared,RWS")
if you add this to a dll the variable x will be readable from all apps using this dll. if more than one process will write to x you should not forget synchronisation.
BEWARE: Shared data must be init !!!
This works not with dynamic variables !
Hope that helps - Mario
P.S.: Sharing pointers via PostMessage has only worked under win 3.x !
-----------------------
www.klangwerker.de
mario@klangwerker.de
-----------------------
|
|
|
|
|
You cannot pass pointers from one process to another. Each process has its own address space, so a pointer in process A points to process A's address space. Process B cannot access any data in process A. The simpliest way to resolve this is to write the data to a file that can be read by process B. Another way may be for process A to put the data into the clipboard and process B to extract it. There are other ways but much more complicated and involves advanced COM+ programming.;)
|
|
|
|
|
I have created two exes(MFC).I am posting a pointer to the structure thro' PostThreadMessage
from one exe
(struct message
{
int messageid;
CString messagedescription;
};
the members are initialized
)
The other exe should receive the pointer posted by the thread from other exe & it should display the member values.But, in my case the structure is getting posted successfully !But, I am getting some junk values in the receiving exe.
How can I get the desired values, then ?
Y.Yamini Devi
|
|
|
|
|
I have created two exes(MFC).I am posting a pointer to the structure thro' PostThreadMessage
from one exe
(struct message
{
int messageid;
CString messagedescription;
};
the members are initialized
)
The other exe should receive the pointer posted by the thread from other exe & it should display the member values.But, in my case the structure is getting posted successfully !But, I am getting some junk values in the receiving exe.
How can I get the desired values, then ?
Y.Yamini Devi
|
|
|
|
|
I'm looking for a Blackjack source code for Palm. Any help would be appreciated.
|
|
|
|
|
Hello Everyone,
I have a problem. I have a Web Browser control embedded in a dialog. Now when i drop a file on this control it opens the file. What i want is doing custom handling for this like putting an icon for these files which when double clicked should open the files. Actually i have to make this dialog behave like the "Compose Message" dialog in Outlook.
Does anyone have any suggestions on how this could be done ?
Thanks a lot for any help,
Regards,
Abhi.
|
|
|
|
|
Two things to try. (This is just speculation - I haven't tried it myself.) 1. Register your dialog as a drop target and see if this overrides the WB control's drag and drop handling. 2. If the WB control still responds to drops, call RevokeDragDrop() and pass the HWND of the WB control.
--Mike--
http://home.inreach.com/mdunn/
Time is an illusion; lunchtime doubly so.
|
|
|
|
|
I am an RPG 400 & RPG IV programmer...although I have been out of the field for 2 years....want access to any online code...so I can refresh myself! Finding it difficult to find site with code I can view! Not bothered what the content is....just want to refresh myself...Any CL would also be a bonus
As would Any command creation! Forgotten alot of coding!
Kelly M.
|
|
|
|