Search:
Type: Posts; User: jim mcnamara
Search:
Search took 0.68 seconds.
-
FWIW:
if(psan->pc == pcPAWN)
{
*sz = FilFromIsq(psan->isqFrom) + 'a';
*sz++;
}
is equally obscure. 'a' evaluates to 97. So *sz becomes the sum of a function and 97. Why that...
-
http://pages.prodigy.net/michael_santovec/decode.htm
-
UNIX or Windows? are these serial devices?
-
#include <stdlib.h>
#include <string.h>
/* reverse a string */
void str_rev(char *src)
{
if (*src)
{
char *p=src;
char *q=strchr(src,0);
while (--q > p)
-
Your parabolas should each have two x-intercepts, the points: where it starts, where it hits the ground. Solve each parabola for the x-intercepts (ie., y=0 or whatever y is at the impact point of...
-
I'm not postive about this but try dependency walker:
http://www.dependencywalker.com/
-
I think he means "bytes". A positive four bit number is 0 - 8.
C example:
#include <string.h>
#include <stdlib.h>
/* accept a postive number 0> 9999 error = return -1*/
int...
-
Assuming I understand your question here is a discussion on analysis of the Weibull function:
http://www.mathpages.com/home/kmath122/kmath122.htm
-
How are you handling collisions?
-
malloc the array - don't put it on the stack as in auto (or local variable).
getrusage() will return your stack use and limits, but you have to be able to run the code first.
If you're running...
-
Try Numerical Recipes in C -
www.nr.com
-
typedef struct s_mystruct
{
long var1;
long var2;
long var3;
long var4;
long var5;
} mystruct;
-
What he is saying: all locally declared variables in C are parked on the user stack. So you have to start using some local variables. No choice. Global variables are sometimes used but cause you...
-
Your description is more than confusing.
If I get what you want try calling EnumWindows() from the parent process.
-
What platform requires you to save four bytes?
In *nix you can do something this if your compiler supports macros with two arguments:
#define swap(x,y) { register int *i=*x; *x=*y; *y=*i }...
-
Okay from the top:
In the C99 standard dynamic arrays can be created in a function when the function is invoked:
int myfunction(int arraycount){
int myarray[arraycount];
int i;
...
-
#include <stdio.h>
#include <string.h>
int main(int argc, char *argv[]){
char string_array[100]={'\0'}; // create and zero out
strcpy(string_array,"this is a test."); // put stuff...
-
-
As an aside you can do this:
for(int i=1;i<10;i++) {
//
}
-
The DX wrapper is called GetDriver.
Thats' the only GetDriver api call I know about
-
GetDriver just returns the name of the driver for the device.
http://216.5.163.53/DirectX4VB/Tutorials/DirectX7/DD_Info.asp
is some information using DirectX data strcutures.
-
Define overhead.
Generally, the pointers used to access heap memory are not allocated off the same heap segment. Anyone pointer is a longword. Even if you allocate an array in heap, the base...
-
Libraries implement different ways to get square roots. Some use integer arithmetic because it's faster. They don't use Newton Raphson necessarily.
Paul Hsieh's page has the state of the art. ...
-
Here is VBF example that opens Access.
Call OpenProcess (better CreatePRocess) then WaitForSingleObject
http://www.vbforums.com/showthread.php?s=&threadid=264266&highlight=shell+and+wait
-
You can do it only using BIOS interrupt calls. The Windows NT family does not allow programs to call BIOS interrupts, so it can only be done under Win9x.
The most direct approach is to write a...
-
Here are C only implementations of find last bit set and find first bit set.
int ffs(unsigned char src){ // find first bit set
register int i=0;
if(src) ...
-
ffs is find first set - the Rtl functions in ntddk.h have a load of functions to find clear and set bits. In your case your probably want
RtlFindLeastSignificantBit() This returns the actual bit...
-
The variable is stored on the user stack unless it is declared as static. CB got it right - you CANNOT depend on the variable existing after the function goes out of scope, even if it is declared...
-
The Dartmouth MPI library is designed for working with integers of VERY large precision - it's free and is meant to work with C on
under Windows and a bunch of *nix boxes.
...
-
Oh. If the db resides on the customer's machine, and has customer data in it and the customer wants to convert - this is completely legal.
The customer owns the data. Not the competitor.
It...
-
Which will work on older Jet db engines. Access 2000 cannot be "opened" that way.
-
VB Strings are BSTR in Windows C++, not an array of char.
This means they are unicode (two bytes for each string character)
-
Are you getting a GPF? Tell us what "crash" means.
-
Try some simple C first -
/* rev.c */
#include <stdio.h>
#include <sys/stat.h>
#include <stdlib.h>
off_t filesize(char *);
int main(int argc,char *argv[]){
char *buf;
-
Profilers are designed to tell you what subroutines or functions take the most time. There are several out there for
VB. Most are not free. A shareware version:
...
-
The header of the mdb file contains the hashed password. Access takes what you enter, hashes it, then compares the result to the hash that is stored in the file.
If the db is an older version,...
-
You can't BitBlt label content - VB labels have no hWnd. They are so-called static graphics - not windows. Since a PictureBox is a container you can get the captions for each label by iterating...
-
You have to use CreateProcess() - Randy Birch's site has an example - he won't allow code copying to another forum so here is the link
http://www.mvps.org/vbnet/code/internet/browserstart.htm
-
If you are talking about window handles, use GetAncestor();
-
The console responds to ANSI cursor postioning - escape sequences.
The full list is here:
http://webcampus3.stthomas.edu/tpsturm/private/notes/qm300/ANSI.html
|
Click Here to Expand Forum to Full Width
|