|
Can anyone point me to source code for an activex vb type scripting engine written in ATL. i know about the Forth script engine code.
|
|
|
|
|
I wanted to know whether it is possible to access individual pins of a serial port using the MSComm control in VB.I want to interface the Pc with an ADC card, and need to know whether it is possible to send Start _of_Conversion pulse to the ADC using the MSComm control.
I'm using this for real time data acquisition.So I wanted to know whether it is a good idea to use the serial port in the first place.
|
|
|
|
|
Is the ADC card external to the PC?
If the MSComm control has control of the DTR / DSR lines, then you can use one those to pulse the serial port.
As to the real-time aspect, that depends upon how fast you need the real-time acquisition to take place. A serial port is deterministic in that it can move data at a constant rate, but Windows is not a real-time operating system, so it may take time to receive that data.
If you only need a few conversions per second, then you should be fine, depending on how much data there is to move.
|
|
|
|
|
How to write WinNT Service using MFC which will automatically start an application say notepad.exe on bootup. [Befor Login]. Please Give me sample code if you have.
|
|
|
|
|
How to write WinNT Service using MFC which will automatically start an application say notepad.exe on bootup. [Befor Login].
|
|
|
|
|
hi
I would like to know where can I download the audio source code for Windows CE(ATL COM)?
|
|
|
|
|
|
hi Adarsh
Get it from
http://www.dogma.net/DataCompression/SourceCode.shtml << this is a wonderful page
u have source for everything
Enjoy
|
|
|
|
|
I'm working on a binary expression tree parser and cannot figure out how to call the stack push method with a binary tree of only one node. I tried this, but got a segmentation fault: stack<char> theStack;
BinaryTree<char>* tree1;
tree1 = new BinaryTree<char> ('A');
theStack.push(*tree1);
As you can see, my BinaryTree uses only constructors to insert values (prevents the need for helper functions).
How would you push a binary tree onto a stack using these .h files? (i'm using c++ of course):
/*********BinaryTree.h*********/
#include <stddef.h>
#include <iostream.h>
template<class node_type="">
class BinaryTree
{
private:
template<class node_type="">
struct Tree_Node
{
Node_Type Node_Info;
BinaryTree<node_type> * left;
BinaryTree<node_type> * right;
};
Tree_Node<node_type> * root;
// prints value within a given node to screen void visit();
// helper function for remove
Node_Type replace(BinaryTree<node_type> *whichTree);
public:
// function: sets root to NULL
BinaryTree();
// function: sets Node_Info=nodeValue, left=NULL,
// and right=NULL
BinaryTree(Node_Type nodeValue);
// function: set Node_Info=nodeValue, left=leftTree,
// and right=rightTree
BinaryTree(Node_Type nodeValue,
BinaryTree<node_type> * leftTree,
BinaryTree<node_type> * rightTree);
// function: class destructor
~BinaryTree();
// function: accepts one parameter of Node_Type and
// removes the node with that value
BinaryTree<node_type> * remove(Node_Type nodeValue);
// function: accept one parameter of Node_Type and
// return true if that value is in the tree
// otherwise false is returned
bool search(const Node_Type nodeValue);
// function: returns true if root=NULL,otherwise,
// false is returned
bool isEmpty();
// function: performs an inOrder traversal of a tree
void inOrder();
// function: performs a preOrder traversal of a tree
void preOrder();
// function: performs a postOrder traversal of tree
void postOrder();
};
/******************************************************/
/********Stack.h*********/
template<class etype="">
struct Element
{
eType StackElement;
Element<etype>* Next;
};
template<class etype="">
class stack
{
private:
Element<etype>* Top_Pointer;
public:
stack();
// Class constructor
~stack();
// Class destructor
bool isEmpty() const;
// Function: Determines whether the stack is empty
// Pre: Stack has been initialized
// Post: Function value = true if stack is empty
void push(eType theStackElement);
// Function: Adds new element to the top of stack
// Pre: Stack has been initialized
// Post: New element is at the top of the stack
void pop();
// Function: Removes top item from the stack
// Pre: Stack has been initialized and is not empty
// Post: Top element has been removed from the stack
eType top();
// Function: Returns the value of the next element
// Pre: Stack has been initialized and is not empty
// Post: Function value = value of the next element
};
//end of class specification
|
|
|
|
|
|
Athaenna summa ??
Eathavathu sollavadiyathu thaanae ??
|
|
|
|
|
what is summa?????;P
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
I'll be really happy if anyone out there has C++ code for Simplex alg...
|
|
|
|
|
Quite hard to code in C++, without some huge library to handle vectors and matrix operations. I have some code for Matlab, I think there's a sort of C/C++ compiler around to make stand-alone executables.
|
|
|
|
|
hy,
u can get it from
http://www.crt.umontreal.ca/~denis/
http://www.bates.edu/~apearson/code/simplex/dsimp.txt (but I guess tis in Java )
http://www-b2.is.tokushima-u.ac.jp/~ikeda/suuri/simplex/Simplex.html
And if ur really interested in more bout it .. u can goto "Michael Trick's Operations Research Page" at
http://mat.gsia.cmu.edu/
Enjoy
|
|
|
|
|
I need to make a custom toolbar for IE5.0. Need some help.
|
|
|
|
|
you can find some example for same in IE programming section
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
I am writting a PC-POS program that runs 24 hours a day (hopefully). At some point during the night it sends to a designated master PC the sales data for that day. During this time period I would like to check if a later version of the application is waiting to be copied from the master PC.
If I use the CopyFile() function it fails because the program is running on the PC-POS unit and so cannot overwrite itself. I was thinking about using WININIT.INI or MoveFileEx() with the MOVEFILE_DELAY_UNTIL_REBOOT flag, but I realy do not want to reboot the machines (16 shops with upto 4 PC-POS units in each shop).
So how would I go about starting the new version of the application without restarting the machine.
Thanks in advance.
Joe.
|
|
|
|
|
Pretty simple: copy the new version to a temp file - proggy.new - and then start another program to do the copy and exit the first. This other program - copyupdate.exe - would back up the previous exe, rename/move the new one, and start the new exe, and then exit.
You could also do this with a little DCOM magic, but the above is the simplest to do and debug.
|
|
|
|
|
Hi,
I am looking for a source code (VC++) for Subclassing Control (Like MsgBlast or MsgHook)
|
|
|
|
|
Hi,
I am looking for a source code (VC++) for Subclassing Control (Like MsgBlast or MsgHook)
|
|
|
|
|
How do I make ini files to store info in, like the registry?
If u can help, please do, or ICQ me on 72044874!
Thanks
Ashman
|
|
|
|
|
Use this functions:
WritePrivateProfileString,
GetPrivateProfileString
see MSDN Chapter: PlatformSDK/Base Services/Registry/Registry Reference/Registry functions
Initialization-File Functions
|
|
|
|
|
Hey folks,
Just wondering if someone has any code out there to write a firewall on the Windows platform? Very low level programming stuff - and I'd be very interested in learing how to program one.
Thanks
Girish
|
|
|
|
|
hi girish
u can get it from
http://www.opensourcefirewall.com/trex_source_download.html
hope tis useful to u.
Enjoy
|
|
|
|