Hi guys , I'm really interested in : What is an average salary of a really good programmer in European countries (like England,Germany,France,...). Regards
Static x
Posts
-
Programmer Salary ? -
x to Bin ? or x to Hex To BinHi everybody, i am writing some functions for arithmetic operations with Huge numbers(more than 1000 digit), i am using CString class and i treat CString objects like numbers,for example : CString s1,s2,s3; s1="625"; s2="25"; s3=Divide(s1,s2); // now s3="25" I have to convert Huge numbers to binary, so using simple algorithm(dividing by 2,...) is too slow, so i decided to convert these numbers first to Hex then from Hex to binary,(as converting to Hex to Bin is very fast as you know) i thought it would make my func faster but it takes approximately the same time ?? Does anybody know why ?? or have any ideas?? Regards m0n0
-
AfxBeginThread() ???????????"What are you trying to do with your worker thread?" Pretty Lot, i am testing huge numbers(100 or more digits ) on primality. Actually i am doing lots of operations there,probably this makes my cpu go 100% , anyway thanks for attention to all :) m0n0
-
AfxBeginThread() ???????????Hi everybody, i am using a simple thread in my program, when i launch the thread it works , but slows my machine, in the task manager the CPU usage is 100% until the thread is ended. I am using simple AfxBEginThread(..) function ,is there any other way to make thread work , without slowing down my PC??? With Best Regards m0n0
-
Stupid problemHi everybody , i have a problem , when i download any demo application or source codes from C# articles , windows tells me that it can't open this file(though i have installed Visual studio.net ) and asks me too choose program with which it will open it. Whats wrong?? Regards m0n0
-
Problem with CEditHi everybody, i have a problem with CEdit, for example CString s1="Hello World"; CString s2="This is a Test"; //and we have CEdit variable m_edit m_edit=s1+"\n"+s2; as you see i want the result to be Hello World This is a Test but CEdit shows : Hello World This is a Test though CEdit is marked in properties as "Multiline" Can anybody help?? Regards m0n0
-
Moving a DialogboxSimply Add this code to WM_LBUTTONDOWN event : void CYourDialog::OnLButtonDown(UINT nFlags, CPoint point) { CDialog::OnLButtonDown(nFlags, point); PostMessage( WM_NCLBUTTONDOWN, HTCAPTION,MAKELPARAM( point.x, point.y)); } Thats it!!! m0n0
-
Hex values ???????Thanks Jerome for your attention. You know i have written several functions for Adding,Subtracting,Multiplying,.... huge numbers, my functions look like : CString ADD(CString s1,CString s2) CString SUB(CString s1,CString s2) ... CString TO_BINARY(CString s1) you see i have a function as shown above TO_BINARY , which means that it does smth like this (just example) CString g = ToBinary("13");//so g="1101" and this function is too slow when instead of "31" i enter number with 100 digits or more, Could you please give me any idea if i can use theses 0x000,... or smth similar to make my algorithm faster Regards m0n0
-
question regarding : _T(..) functionCan anybody tell me why some programmers prefer MessageBox(_T("Hello world !")); to MessageBox("Hello World !") ?? What this _T(..) actually does ???? Regards Giorgi Moniava
-
Global FunctionHi Everybody, I have problem with global functions in VC++.Net, is simply add a global function in my project like: UINT MyThreadProc(LPVOID pParam) { ... return 0; } and then when i want to call it for example when pressing abutton : AfxBeginThread(MyThreadProc,0) , i get an error : c:...: error C2065: 'MyThreadProc' : undeclared identifier can anyone help ? Regards Giorgi Moniava
-
AfxBeginThread() ???Hi i want to write a simple thread , that will work in the background and i'll be able to do other things in my program until the thread is in progress,i do the following but get an error. UINT CtestDlg::MyThreadProc(LPVOID pParam)//create thread { for(int i=0;i<10000;i++) for(int j=0;j<10000;j++) {}; MessageBox("Finished"); return 0; } then call it : AfxBeginThread(MyThreadProc,0); but i get an error : c:\...\ : error C2665: 'AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'UINT (LPVOID)' Can anyone help ? Regards Giorgi Moniava
-
Smth. like firewallHi everybody , i want to write a application similar to "Program Control" that firewalls have, when a firewall is asking you to allow or deny acces to given program to internet , when this program tries to connect to internet. Can anybody give me link to any web site or any article where i can find information regarding this. Thanks in advance m0n0
-
Convert To BinaryI have written class inherited from CString for doing arithmetic operations with huge numbers,but it takes too long to convert a decimal number to binary using standard algorithm(dividing on 2,...). situation is like this: i want to convert (for example) CString g = "134.......45645675"; to Binary //CString binary; //binary=SOMEFUNCTION(g); binary = "10000100...10011" can you give me any link where i can find information about converting from decimal to binary using shift left and shift right operaations,or give me any tipps,i think using these operations will make conversion faster. Thanks in advance m0n0