Showing results 1 to 15 of 15
Search took 0.01 seconds; generated 1 minute(s) ago.
Posts Made By: paolomontero
Forum: C++ Sep 15th, 2008
Replies: 4
Views: 156
Posted By paolomontero
Re: How are menus drawn in windows?

Thank you for your reply,

I think my original post wasn't too descriptive.

I know about win32 api. I'm using Detours (a library that Microsoft Research released for "detouring" a function in a...
Forum: C++ Sep 15th, 2008
Replies: 4
Views: 156
Posted By paolomontero
How are menus drawn in windows?

Hello,

Does anyone know which GDI API is called to draw menus and menu items on windows? I know its not DrawText, DrawTextEx, TextOut or ExtTextOut.
Forum: C Jun 12th, 2008
Replies: 26
Views: 1,979
Posted By paolomontero
Re: Tubo C strange problem

I have started using Turbo C/C++ recently and i could never get this code to work, i cant pass arrays or pointers to functions because the addresses get messed up.

I once found a code that worked...
Forum: C Jun 10th, 2008
Replies: 26
Views: 1,979
Posted By paolomontero
Re: Tubo C strange problem

jephthah thank you very much for your support, really!

if someday i get a solution ill let you know.

Gabriel
Forum: C Jun 10th, 2008
Replies: 26
Views: 1,979
Posted By paolomontero
Re: Tubo C strange problem

im using xp 32 bit.

exe2bin is not the problem, i just use it to make debugging easier. the executable tlink outputs is exactly the same as the raw binary image made with exe2bin. so, if you cant...
Forum: C Jun 9th, 2008
Replies: 26
Views: 1,979
Posted By paolomontero
Re: Tubo C strange problem

Ok, i see what you mean, but this doesnt fix the problem.

This is exactly what im doing:


void f(char *);

int main() {
f("hello");
return 0;
Forum: C Jun 9th, 2008
Replies: 26
Views: 1,979
Posted By paolomontero
Re: Tubo C strange problem

Yes, i can set the address using a hexadecimal editor, but that code i posted is just the abstraction of the problem. In my actual program i will have lots of arrays/pointers to pass to functions and...
Forum: C Jun 9th, 2008
Replies: 26
Views: 1,979
Posted By paolomontero
Re: Tubo C strange problem

How are you compiling? Directly from the environment or using tcc and tlink separately?

I want to do it the second way and without using stdio. So i tried like this both with Turbo C 2.01 and with...
Forum: C Jun 6th, 2008
Replies: 26
Views: 1,979
Posted By paolomontero
Re: Tubo C strange problem

OK, i knew about that already and thats why im using Turbo C.

But im still having the problem i posted at the begging! Anyone can help me with that? If somebody wants my messenger to instruct me...
Forum: C Jun 5th, 2008
Replies: 26
Views: 1,979
Posted By paolomontero
Re: Tubo C strange problem

jephthah, thank you very much for your interest.

Im developing an operating system (if you can call it that) as a project of my own and just for personal use. Im really excited about this.

I...
Forum: C Jun 5th, 2008
Replies: 26
Views: 1,979
Posted By paolomontero
Re: Tubo C strange problem

Thanks for replying.

niek_e, you are right about the comparing but thats not the problem. It seems to me that you misunderstood my post, if you look at the disassembly, the array position is not ok...
Forum: C Jun 4th, 2008
Replies: 26
Views: 1,979
Posted By paolomontero
Tubo C strange problem

Hi,

I'm using Turbo C 2.01 and im stuck with this problem.

I've reduced it to the following. My code in Turbo C is this:


void f(char *);

char h[] = "hello";
Forum: Legacy and Other Languages May 26th, 2008
Replies: 1
Views: 959
Posted By paolomontero
Turbo C Fixup Error

Hi,

Im writing a program in Turbo C but i also want to use some assembly functions, for this im using nasm.

This is my assembly code:


BITS 16

GLOBAL _Add4
Forum: C++ Apr 20th, 2008
Replies: 2
Views: 560
Posted By paolomontero
Re: PROBLEM WITH #define

never mind

i feel stupid

theres un unnecesary ; in de define line
Forum: C++ Apr 20th, 2008
Replies: 2
Views: 560
Posted By paolomontero
PROBLEM WITH #define

Hi

Im having a problem with the following piece of code:

#include <iostream>
using namespace std;
#define something 33;

void main() {
if (33 == something) {
Showing results 1 to 15 of 15

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 6:43 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC