cambalinho 142 Practically a Posting Shark

can anyone explain to me what is: 'T', 'L', 'wchar_t', 'LPCWSTR' and 'LPCTSTR'?
how can i convert strings\char* to these types?
(i understand these isn't a tutorial, but i realy need these introdution)
or you can give me just a nice link.

cambalinho 142 Practically a Posting Shark

thanks, these classic technique have a term name?
(for google search: i want read more about it)

cambalinho 142 Practically a Posting Shark

i understand. thanks for all.. realy.. thanks for all

cambalinho 142 Practically a Posting Shark

so the languages have their own OOPL. and some more easy than others. like the classic program language(they can be diferent, more powerfull, more easy). but true the C++ is general purpose language(for any type of projects).
thanks for all

cambalinho 142 Practically a Posting Shark

sorry what you mean?

cambalinho 142 Practically a Posting Shark

i have question: if properties and events are OOPL too, why the C++ don't have it?
(unless we do it)
i think it's basics of OOPL too

cambalinho 142 Practically a Posting Shark

yes... now works fine. thanks to all

cambalinho 142 Practically a Posting Shark

Dani, please can you see my profile settings?
i thinnk that it's ok. but i don't understand why i don't recive the mail notifications :(

cambalinho 142 Practically a Posting Shark

even for that, i can't recive the mail :(
i don't know what cause these :(

cambalinho 142 Practically a Posting Shark

thanks for all to both

cambalinho 142 Practically a Posting Shark

sorry... i didn't get the mail notification :(
http://en.wikipedia.org/wiki/Programming_paradigm
thanks for all

cambalinho 142 Practically a Posting Shark

i did anotherthing on my mail. i select your mail by safety, for see if it's the problem

cambalinho 142 Practically a Posting Shark

do me a favor. send me a mail from these forum, for test please

cambalinho 142 Practically a Posting Shark

ok.. thanks for all

cambalinho 142 Practically a Posting Shark

'Last Updated by deceptikon'
yes

cambalinho 142 Practically a Posting Shark

'Automatically Watch Articles I Post In?' it's checked.
but i will uncheck it and check. please answer for test

cambalinho 142 Practically a Posting Shark

on my last topic i didn't recive mails notifications(when someone answer me). how i have sure that i will recive a mail notification on topic?

cambalinho 142 Practically a Posting Shark

if C++ isn't a real OOPL, what left?
with another words i want study(theory\concepts) the real OOPL. can you give me a link with these information?

cambalinho 142 Practically a Posting Shark

with some work and 'random' options i delete the username and the windows did i new profile with same name. but i did 1 mistake: delete the username, before save the files. hey i'm new with these error :(
now i will use a nice program for recover the files ;)
thanks for all

cambalinho 142 Practically a Posting Shark

when i enter on windows, i see the button user name... until here, fine. but when i click it, i get 1 error about user profile. can anyone help me fix it, please?

cambalinho 142 Practically a Posting Shark

thanks for all.. realy.. thanks
i belive that you recive 1 mail for change these title topic. but if it's ok.. then these is the title ;)
'I believe there is a slight delay. I think you are just faster then the system.'
lol i love you answer ;)

realy.. thanks for all

cambalinho 142 Practically a Posting Shark

thanks
why the print is 5001 instead 5000?

can you give me a nice link for study about chrono libary?

out off topic: why i didn't recive the mail when someone answer me?
(i only have seen on these topic)

cambalinho 142 Practically a Posting Shark

my problem was:
- i can't use int, but double. if the left side is int and the right is double, the compiler will considered int instead double. that's why i recived bad results.
- instead 'auto', i must use double:

double ConvertSecondsToNanoSeconds(double a)
{
    cout.precision(15);//these is for show me the results in numbers and not with 'e'..
    return (a*1000000000);
}

thanks for all

cambalinho 142 Practically a Posting Shark
auto ConvertSecondsToNanoSeconds(int a)
{
    return (a*1000000000);
}

what is the chrono type for use these big number?

cambalinho 142 Practically a Posting Shark

finally i resolved in a diferent way:

#include <iostream>
#include <chrono>
using namespace std;
int main()
{
    auto start = chrono::high_resolution_clock::now();
    auto end = chrono::high_resolution_clock::now();
    auto interval = 5;
    cout << interval << endl;
    while (((end - start).count()/1000000000) <= interval)
    {
        end = chrono::high_resolution_clock::now();
    }
    cout << "hello";
    cin.get();
}

thanks for all

cambalinho 142 Practically a Posting Shark

ok.. i see the problem.. i'm using the wrong type too.

auto interval = 5000000 * 1000;
cout << interval << endl;

the outup is:
705032704

cambalinho 142 Practically a Posting Shark

sorry... but i think, that i don't recive the mail from your answer :(
the 1 000 000 ns=1ms so 5 000 000 = 5ms... so 5 000 000 * 1000 is 1s(second) right???

int interval = 5000000 * 1000;

but seems that my calculation isn't right :(

cambalinho 142 Practically a Posting Shark

i'm trying do a counter timer for test the interval, but without sucess :(

#include <iostream>
#include <chrono>

using namespace std;

int main()
{

    auto start = std::chrono::high_resolution_clock::now();
    auto end = std::chrono::high_resolution_clock::now();
    int interval=50000000;
    auto elapsed=std::chrono::high_resolution_clock::now();
    while(elapsed.count()<=interval)
    {
        end = std::chrono::high_resolution_clock::now();
        elapsed= end - start;
    }
    cin.get();
    return 0;
}

can anyone tell me what i'm doing wrong?

cambalinho 142 Practically a Posting Shark

thanks for all

cambalinho 142 Practically a Posting Shark

someone correct me these: 1s=1000ms?

cambalinho 142 Practically a Posting Shark

yes.. 1ms is my big objective... thanks for that great information my friends

cambalinho 142 Practically a Posting Shark

thanks for all to both

cambalinho 142 Practically a Posting Shark

mingw32... but i think that it's the GNU too

cambalinho 142 Practically a Posting Shark

GNU compiler.. the free

cambalinho 142 Practically a Posting Shark

sorry.. i'm confuse... so 1 000 000 it's 1ms?
i'm using Windows 7(i don't like to much of 8, because it's like i need a touchscreen because of it's 'start menu')

cambalinho 142 Practically a Posting Shark

i have now tested your code:
the ouput is: 1 000 000
what is the output scale mode?

cambalinho 142 Practically a Posting Shark

thanks for that. thank you

cambalinho 142 Practically a Posting Shark

i understand.. thanks for the answer my friend
sorry what is '*nix'?

cambalinho 142 Practically a Posting Shark

is there any function(API or something) for get 1ms of precision?
i have 1 timer, but i only get 10ms of max.

cambalinho 142 Practically a Posting Shark

thanks.... thanks for all. thanks to all

cambalinho 142 Practically a Posting Shark

thanks for all, but i just was explain nothing. if i realy need it, i will do a new thread. thanks for the links. thanks for all to all

cambalinho 142 Practically a Posting Shark

have you seen the image that i send you?
you can see that it's like VB6 code. and it's good have 1 powerfull language with easy syntax and easy language ;)
and good for my pratice too. i learn Assembly and Turbo Pascal(i forget both)... i discovered that i love programming, so i discovered the VB6.. and then i see it's limits. my language you will simple too, but with some class's for allmost we use(multithread, timer(for now is 10ms of precision), strings, Console, instead Graphics i will use the Sprite(combine images with effects and shapes), controls(i must learn about API windows), and more).. will give me work. but what will give me work will be the properties and events, because they aren't directly in language ;)

cambalinho 142 Practically a Posting Shark

more dificulty is how detect all types of errors;)
i have 1 function in VB2010(yes i use the VB2010 for do the conversion and the IDE) for separe all keywords\functions names\special characters\strings(not yet for chars and comments). these function make 50% of my work;)
i will change all what i did, because i must change my language sintax. will be great(think in VB6).

cambalinho 142 Practically a Posting Shark

do you know why i'm build a new language?(ok using the c++ compiler, because i just convert it to C++)
- be simple to use like VB6(VB2010 in very things seems complex);
- powerfull like C\C++;
- anotherthing: 'limit is your imagination'. for exemple:

      - you don't use Console for games(normaly), but why not let the programmer do it, if want it ;)
      - VB2010 have nice functions in Console class... hey can i change the window size?? or change the window position?(i continue with Console);
      - VB2010 it's great, but why i can't change the alpha\transparent values with controls?(yes they have it, but aren't real... because they just copy the parent background image;
      (and more)

i understand that i'm speak out off topic, but you get the point ;)
anotherthing: realy... thanks for all... thanks

cambalinho 142 Practically a Posting Shark

sorry. i recive 1 mail from these forum. what means 'DaniWeb articles you've recently viewed‏'?

cambalinho 142 Practically a Posting Shark

mike_2000_17 i see what you mean by that link. sorry about that. i just was trying be more simple, but sometimes we can't

cambalinho 142 Practically a Posting Shark

i'm doing these for be more easy to convert my language to C++. but like you said for don't go in these way, i stop it ;)
thanks for all to both

cambalinho 142 Practically a Posting Shark

i continue with very errors messages. see the original example:

events<int,int> moved{[](int a, int b) { ; }};

i need convert it to a macro(for just avoid the templates arguments):

EVENTS(moved,int a, int b);

i'm using what you correct me(thanks for that).
if you tell me these is impossible... thanks anyway and thanks for all

cambalinho 142 Practically a Posting Shark

sorry, i think, by forum rules, we can't. but take these free(realy free):
C++ tutorial: http://www.tutorialspoint.com/cplusplus/cpp_tutorial.pdf
C tutorial: http://www.tutorialspoint.com/cprogramming/cprogramming_tutorial.pdf

they are totaly free. but, in forums, i think we can't share ebooks. but read these nice tutorials and the links that i posted.
good learning

cambalinho 142 Practically a Posting Shark

i re-read your tutorial, but i continue falling :(
see these other macro:

#define EVENTS(a)(...)  events<...> a{[](...) { ; }};

tell me where i'm failling please:(