that seems a good resource but, just cause of interest: is there only odbc on windows? and for better understanding: is odbc just a API which is able to "talk" to databases? or can odbc do much more than just manage sql and its results? (i'm not sure about what i'm expecting, that's why i ask ;-) )
ThinkingPrometheus
Posts
-
how to connect to a database like postgresql or mysql? -
how to connect to a database like postgresql or mysql?hiho cause i'm much more working on unix systems i just don't know how i can connect and do some SQL statements to a database like postgresql or mysql? for example, using linux i use libpq API with funktions like PQconnectdb or PQexec to connect or execute a query but how does this work under windows? can i use the same API on windows systems? i'm sure there are many guys here who know how this stuff works, but since i work most time with linux i just have no idea on how to do database programming on windows any articles or hints would be great thx@ll
-
how do hooks of zonealarm or spybot work?thx guys seems like a lot of work but i think driver programming is a good hint
-
how do hooks of zonealarm or spybot work?hiho@ll what i'm interested in: zonealarm opens a window if a "unkown" app wants to access the internet and asks if this app is allowed to do this spybot does the same for the registry. if a app wants change the registry a window is opened to ask the user if this is allowed btw: i'm not only interested in how do zonealarm and spybot know such stuff (that a app wants to change something), how can zonealarm or spybot can decide if the app is allowed or not? how can zonealarm control what the other apps are allowed to do? how does such stuff work? does it work for everything? (control of hardware and every software e.g. check if a specific function of a dll should be called?) is it a hook? if yes, how do they work? (a hint should do it) thx@ll -- modified at 14:58 Friday 27th January, 2006
-
how to retrieve dll function parameter variables?hmm what about disassembly? i just found pe explorer and it can disassemble every dll i tried (just to make it clear i don't really want to reengineer the code of the dll and hack something or such stuff, i don't even know how this works, but:) wouldn't it be possible if i disassemble a file, know the function names and the function entry points in the dll i could have a "clue" of the parameters if i have a look at "push" assembler commands before such a function is called? i mean if a pointer is pushed it could mean something like void* or a eax value is pushed it could mean int i know i can't be 100% sure, but with the above method (i don't even know how i could do this, but just for fun ;-) ) i can have a clue of the amount of parameters and a bit of the type it could be and i think it could be enough to not be wrong with this clue i mean, if i use void* altough the dll function expects a char*, it would be somthing like try and error but i can be sure its a pointer or an int ? or maybe i'm completely wrong? thx
-
how to retrieve dll function parameter variables?the .pdb file does mean that i have a debug version of this file too? cause (i'm not sure if i'm right) i only know the .pdb from my projects (well it could be a realse version of the dll too, but it means i should have access to the source code otherwise it would be a bit difficult to get the pdb file, not?) thx
-
how to retrieve dll function parameter variables?hiho@ll what i have: a dll what i want: a list of every function available in the dll and the parameters each function needs (the return value would be cool too) seems like i need something like "function prototypes" from a dll the problem: to retrieve the function names i think i will use pexport program cause source is available (i have to read the source, didn't yet) but it only can read function names, but i need the parameters too question: 1. how can i read parameters of a dll function if i only have the dll? 2. is there something like a dll file format, or a documentation how a dll works (dll header, dll symbols etc. at which offset in the dll files can i find what ...) 3. is there a simple windows function to retrieve this stuff? thx@ll
-
have problem convert javascript to cthe javascript:
function r(x,y){ return Math.floor((x/y-Math.floor(x/y))*y+.1); } function m(c){ var i,j,s=[13,8,13,12,16,5,3,10,15]; for(i=0;i<9;i+=1){ j=c[r(i+2,3)]; c[r(i,3)]=(c[r(i,3)]-c[r(i+1,3)]-j)^(r(i,3)==1?j<<s[i]:j>>>s[i]); } } function getURL(url){ url='info:'+url; var c=[0x9E3779B9,0x9E3779B9,0xE6359A60],i,j,k=0,l; for(l=url.length;l>=12;l-=12){ for(i=0;i<16;i++){ j=k+i; c[Math.floor(i/4)]+=url.charCodeAt(j)<<(r(j,4)*8); } m(c); k+=12; } c[2]+=url.length; for(i=l;i>0;i--) c[Math.floor((i-1)/4)]+=url.charCodeAt(k+i-1)<<(r(i-1,4)+(i>8?1:0))*8; m(c); return'6'+c[2]; } String: Checksum the C code i already have: `#include #include #include #include #define r(x,y) (long long int)(floor(((x)/(y)-floor((x)/(y)))*(y)+0.1)) void m(long long int *c); void getUrl(char *tmp); void printc(long long int *c); void printc(long long int *c){ for(long long int i=0;i<3;i++) printf("%lld ",c[i]); printf("\n"); } int main(int argc, char **argv) { getUrl("http://fabmail.de/"); fgetc(stdin); return 0; } void m(long long int *c){ long long int i,j,s[]={13,8,13,12,16,5,3,10,15}; printc(c); for(i=0;i<9;i++){ j=c[r(i+2,3.0)]; c[r(i,3.0)]=(c[r(i,3.0)]-c[r(i+1,3.0)]-j)^(r(i,3.0)==1?j<>s[i]); } } void getUrl(char *tmp){ char url[2048]={0}; char ergebnis[1024]={0}; if(tmp==NULL || strlen(tmp)>2084-6){ return; } sprintf(url,"info:%s",tmp); long long int c[]={0x9E3779B9,0x9E3779B9,0xE6359A60}; long long int i,j,k=0,l; for(l=(long long int)strlen(url);l>=12;l-=12){ for(i=0;i<16;i++){ j=k+i; c[(int)floor(i/4.0)]+=url[j]<<(r(j,4.0)*8); } m(c); k+=12; } c[2]+=(long long int)strlen(url); for(i=l;i>0;i--) c[(int)floor((i-1)/4.0)]+=url[(k+i-1)]<<(r(i-1,4.0)+(i>8?1:0))*8; m(c); sprintf(ergebnis,"6%lld",c[2]); printf("%s\n",ergebnis); }` int the C code the problem is in the m(c); function but i don't know what's wrong -- modified at 9:10 Sunday 2nd October, 2005
-
have problem convert javascript to chiho@ll i need to convert a simple javascript i've found which generates a checksum to C because i want to use it in a c prog btw. i want to use this exact checksum code, so trieing another checksum algorithm isn't an option here is only one line of code where i think the problem occures i'll post the whole code as a reply so you can test it if you want javascript:
c[r(i,3)]=(c[r(i,3)]-c[r(i+1,3)]-j)^(r(i,3)==1?j<>>s[i]);
C:c[r(i,3.0)]=(c[r(i,3.0)]-c[r(i+1,3.0)]-j)^(r(i,3.0)==1?j<>s[i]);
r is defined as this:#define r(x,y) (long long int)(floor(((x)/(y)-floor((x)/(y)))*(y)+0.1))
and for testing you can use c as the following array:long long int c[]={0x9E3779B9,0x9E3779B9,0xE6359A60};
the problem is that i get wrong values within the C code but the javascript code works another problem was Visual Studio!! i got complete different values for the whole code using visual studio using the same code on Linux (i used cygwin) got me right values (for some part of the whole code) don't know what the problem is/was but neither Visual Studio nor Linux got the one line described above work i get wrong values anybody knows the right conversion of the javascript code to C code? thx@ll -
how to check if a process has really been started?thx blake seems simple i'll check it out
-
how to check if a process has really been started?thx i'll check it ;-)
-
how to check if a process has really been started?this means i have to check what processes are currently running 1. don't really know how i can check this, using my prog :-( 2. what if it's a single instance app and i check the task manager i will find the process, but it's not the process i wanted to start! it's another! so how can i check if the process i wanted to start has been started? thx
-
how to check if a process has really been started?hiho@ll you can start a new process with CreateProcess (or system,...) i think everybody knows my question: (i think it will only work with creatprocess function) how can i know if the process has really been started? (maybe the file has been deleted, or the app i want to start is single instance app and another instance is running, or the file has been damaged during download ,...) how do i know what happend and if the process has been started or not, and if not, why not thx@ll
-
how to get binary RGB data from webcam?hiho thx for your help!! this library (OpenCV/cvcam) is damn cool! it's exactly what i need and i just got it run but i have a little problem, maybe you can help if you already worked with the library i have a IplImage pointer to the image from which i want to read the image's RGB values my problem is the access to the rawdata array! the pointer points to a image structure with a value imageData = the raw data imageSize = the byte size (i think) in an example i saw this code memset(img->imageData, 0, img->imageSize/2); which simply set's the first half of the image to black this code crashes my prog! the same happens if i use a loop to read every pixel values i just can read the first 146047 bytes of the buffer then it crashes i'm sure it's because it's a segmentation fault so my question if i use image->imageSize as a byte limit for the image raw data buffer and this is wrong how do i know the exact size of the raw data buffer? because imageSize doesn't seem to be correct thx
-
how to get binary RGB data from webcam?hiho@ll i had a look at this tutorial to capture video from a webcam now i need just the RGB data from the webcam! i don't want the webcam data to be displayed on the screen (well i want it too) but i need the binary data! anybody knows a filter which i can use to grab the data cause i'm a noob at this topic, a tutorial or a sample code would be great hmm btw maybe i'm wrong, but it seems that there is no tutorial about direct show programming! or not? i search for some, but i only get some doc about some functions but what if i want to prog my own filter, how do pins work and what are they exactly? it's not easy to find a good basic tutorial about directshow programming! anybody knows a good resource? thx@ll
-
change single instance app to multi instance?ok i thought it would work something like: get application handle, use some functions, ... because i thought you can nearly change everything if you have the application handle didn't really thought about reverse engineering cause i don't know how it works ;-) another question: not really about this topic, but it seems you know reverse engineering i was asking myself if it's possible to encrypt an exe i mean, wouldn't it be impossible to reverse engineer a application if the executing file is encrypted? i know it's also a performance question, but if i don't want my app to be reverse engineered, is't it possible to make it impossible ;-) regards
-
change single instance app to multi instance?;-) i know there is a reason but not everytime! sometimes there are progs, which have this feature just to have it do you know how it works? if yes, how? thx
-
change single instance app to multi instance?hiho@ll i have a prog (already compiled (.exe) and i don't have the source) i want this prog, which only runs as single instance, to have it run more instances is this possible? if yes, how? i had 2 ideas both i don't know how to do: 1. change the prog itself, that it can run more instances (well, how?) 2. change some OS settings, if the prog already runs, so that if the program checks if there is already a running instance, the windows tells the prog "no you'r alone" (how?) thx@ll
-
iconify application?that was a great hint but: i made a prog as described in the tutorial it worked great now i tried to catch the HWND from a mouseclick to get the window for which i want invisible the task bar icon (the systray should be visible) what i do: catch the click use WindowFromPoint to get the clicked window create a new CWnd which is invisible set the parent of the clicked window to the invisible window well the whole window is invisible hmm don't realy know the problem/solution what could be the problem? anybody knows an answer? thx
-
relative coordinates to absolute?great it worked! thx