Search Results

Showing results 1 to 22 of 22
Search took 0.01 seconds.
Search: Posts Made By: paolomontero
Forum: C++ Apr 30th, 2009
Replies: 2
Views: 655
Posted By paolomontero
Thanks for answering.

What compiler are you using? I still can't compile even thou I did what you suggested:

I tried removing the <> in the declarations as well as the definitions and I still...
Forum: C++ Apr 30th, 2009
Replies: 2
Views: 655
Posted By paolomontero
I get this error:



When trying to compile the following code with VS2008:


#include <iostream>

using namespace std;
Forum: C++ Apr 26th, 2009
Replies: 8
Views: 466
Posted By paolomontero
Forget my last post, I just got what you ment by:
Forum: C++ Apr 26th, 2009
Replies: 8
Views: 466
Posted By paolomontero
Thanks nucleon, but I never said I was only instantiating MyTemplate with only one class, in fact MyTemplate is an AVL and I want it to be able to hold any type, for example int or my own String...
Forum: C++ Apr 26th, 2009
Replies: 8
Views: 466
Posted By paolomontero
Thanks for the replies.

I think the best solution (someone pointed it out for me on another forum) is to use the Boost Concept Check Library:
...
Forum: C++ Apr 26th, 2009
Replies: 8
Views: 466
Posted By paolomontero
Hey, thanks for your reply.

I'm not ever going to derive anything from my template (MyTemplate).

I just wan't to force the user of MyTemplate to provide a class as the template argument (T)...
Forum: C++ Apr 26th, 2009
Replies: 8
Views: 466
Posted By paolomontero
Provided the following template:


template <class T>
class MyTemplate {
private:
T myData;
public:
MyTemplate(const T &data) : myData(data) {}
bool Contains(const T &);
Forum: C++ Sep 15th, 2008
Replies: 4
Views: 428
Posted By paolomontero
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: 428
Posted By paolomontero
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: 3,060
Posted By paolomontero
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: 3,060
Posted By paolomontero
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: 3,060
Posted By paolomontero
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: 3,060
Posted By paolomontero
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: 3,060
Posted By paolomontero
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: 3,060
Posted By paolomontero
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: 3,060
Posted By paolomontero
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: 3,060
Posted By paolomontero
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: 3,060
Posted By paolomontero
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...
Forum: C Jun 4th, 2008
Replies: 26
Views: 3,060
Posted By paolomontero
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: 1,652
Posted By paolomontero
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: 1,043
Posted By paolomontero
never mind

i feel stupid

theres un unnecesary ; in de define line
Forum: C++ Apr 20th, 2008
Replies: 2
Views: 1,043
Posted By paolomontero
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 22 of 22

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC