Search Results

Showing results 1 to 40 of 45
Search took 0.01 seconds.
Search: Posts Made By: dubeyprateek ; Forum: C and child forums
Forum: C May 14th, 2009
Replies: 3
Views: 707
Posted By dubeyprateek
For connection oriented UDP (like in your case), it is important to bind
Forum: C Feb 7th, 2008
Replies: 4
Views: 809
Posted By dubeyprateek
I corrected minor syntactical errors in your code. I did not check the logic. Check following code.

#include<stdio.h>
#include<stdlib.h>

int find_transpose(int n, double **a, double **b)
{...
Forum: C Feb 7th, 2008
Replies: 4
Views: 809
Posted By dubeyprateek
What does not work? Does it gives you compile errors? Does it crashes?
Forum: C Jan 2nd, 2008
Replies: 5
Views: 1,040
Posted By dubeyprateek
@sivaslieko++ is it the 'if' not working or your logic is not working?

One unfortunate thing associated with computer is, it does not work the way you want it to work it works the way it should...
Forum: C Jan 2nd, 2008
Replies: 4
Views: 586
Posted By dubeyprateek
@cdijuste
You knew it didn't you?? "less or equal to" "<=" :)
Forum: C Jan 2nd, 2008
Replies: 1
Views: 447
Posted By dubeyprateek
Forum: C Dec 28th, 2007
Replies: 16
Views: 8,534
Posted By dubeyprateek
>>Only in that the heap can not access memory beyond the 4 gig boundry.

In fact heap can never access memory beyond 4 GB in 32 bit Windows Operating System.

I am sorry for not making myself...
Forum: C Dec 28th, 2007
Replies: 16
Views: 8,534
Posted By dubeyprateek
PAE does not have to do anything with Heaps.
Forum: C Dec 28th, 2007
Replies: 16
Views: 8,534
Posted By dubeyprateek
Seems I could not present myself correctly...
Heap and Virtual memory are different
see this for heaps
http://msdn2.microsoft.com/en-us/library/aa366711(VS.85).aspx
This...
Forum: C Dec 28th, 2007
Replies: 16
Views: 8,534
Posted By dubeyprateek
>>That also is implementation dependent. I think that is how it works in ancient 16-bit MS-DOS but things have change just a tad since the 1980s. Memory is no longer segmented like that.

I am not...
Forum: C Dec 27th, 2007
Replies: 16
Views: 8,534
Posted By dubeyprateek
Your heap is divided into segments you can have maximum 64 segments and each segment is divided into blocks. The blocks are the actuall memory you allocate.

The first heap block is an allocation...
Forum: C Dec 25th, 2007
Replies: 5
Solved: Login
Views: 860
Posted By dubeyprateek
You are right... but looking at the perpose and wide useage you can justify LogonUser.

It is fun!!
Everyday, I see atleast one person around the globe struggling with this API. [:)]
Forum: C Dec 25th, 2007
Replies: 5
Solved: Login
Views: 860
Posted By dubeyprateek
>>How to make win32 app with login?
What login you are targeting? Domain login ?
there is a well-known API in user used for login in domain "LogonUser"...
Forum: C Dec 24th, 2007
Replies: 7
Solved: syntax question
Views: 1,203
Posted By dubeyprateek
PUBLIC _PROTOTYPE indicates folowing routine is a System call handler. Systems-tasks are more like a hardware abstraction. The call_vec table is an array of function pointers that is indexed by the...
Forum: C Dec 24th, 2007
Replies: 7
Solved: syntax question
Views: 1,203
Posted By dubeyprateek
>>PS2:: merry christmas to all!!
Same tt you!
Forum: C Dec 24th, 2007
Replies: 7
Solved: syntax question
Views: 1,203
Posted By dubeyprateek
call_vec is a array of pointer to functions which pass void and return int.
PUBLIC _PROTOTYPE should be some typedef.
Forum: C Dec 24th, 2007
Replies: 7
Views: 925
Posted By dubeyprateek
There is no way (at least in C and C++) you can input a mathematical expression in the form of mathematical expression. You can only input a string and convert it to mathematical expression and do...
Forum: C Dec 21st, 2007
Replies: 3
Views: 4,395
Posted By dubeyprateek
It clearly indicates you have done things right!!
Forum: C Dec 21st, 2007
Replies: 28
Views: 1,946
Posted By dubeyprateek
You can use component object modeling, runtime polymorphism, Pure virtual functions.

Dlls (Dynamicly linked library)

Thanks,
Prateek
Forum: C Dec 21st, 2007
Replies: 28
Views: 1,946
Posted By dubeyprateek
Use pure virtual functions (run time polymorphism C++).
Or call functions in if else or switch blocks.



You can not surch or enamurate all functions of a executable.
Forum: C Dec 21st, 2007
Replies: 28
Views: 1,946
Posted By dubeyprateek
You can build static libraries and dynamic libraries and load them in your application. However, it is more platform specific than language specific.

You can use COM and point to right...
Forum: C Dec 21st, 2007
Replies: 28
Views: 1,946
Posted By dubeyprateek
You can only have pre processor directives.
#if
#else

You can not include header file as such during runtime.

Header files normally should contain declarations you are going to use in your...
Forum: C Dec 21st, 2007
Replies: 28
Views: 1,946
Posted By dubeyprateek
Are you talking about including header files at run time ?
Forum: C Dec 21st, 2007
Replies: 5
Views: 1,407
Posted By dubeyprateek
Only solution is send small chunks of data, as big as you can keep in your buffer.
Prepare a queue at sending side(client side) send data to your hardware(server) only from that queue.
Hardware is...
Forum: C Dec 19th, 2007
Replies: 30
Views: 3,311
Posted By dubeyprateek
>>All you did was guess, and that's not really helpful.

Of course it was a guess but I am not sure if it was not useful.
I was just trying to give pointers. I pity if you think it is a bad idea...
Forum: C Dec 19th, 2007
Replies: 30
Views: 3,311
Posted By dubeyprateek
No offence. Concern still remains the same !!
Forum: C Dec 19th, 2007
Replies: 30
Views: 3,311
Posted By dubeyprateek
@jobs
If you just want to start a process CreteProcess (http://msdn2.microsoft.com/en-us/library/ms682425.aspx) or CreateProcessAsUser (http://msdn2.microsoft.com/en-us/library/ms682429.aspx) can...
Forum: C Dec 18th, 2007
Replies: 2
Views: 781
Posted By dubeyprateek
Did you typedef LPCTSTR to flStr and OptStr? If not your function should look like


void checkOptions(LPCTSTR flStr,LPCTSTR OptStr)
{
int iArg = 1, x = 0, i = 0;
TCHAR eMsg[0x200];

i...
Forum: C Mar 30th, 2007
Replies: 5
Views: 1,888
Posted By dubeyprateek
text1 = _T(key); //Does not work cant work
TEXT macro or _T macro operates on constant multibyte strings.
Example TCHAR text1[ ] = TEXT("Hello") ;
u can use conversion routines lie...
Forum: C Dec 27th, 2006
Replies: 5
Views: 1,741
Posted By dubeyprateek
Your code is provided with no documents, no documentations and with no comments, if you want a code review by a third person all these things are a must.
Forum: C Dec 26th, 2006
Replies: 5
Views: 1,741
Posted By dubeyprateek
So,where is the problem? Is it not working?
Forum: C Dec 20th, 2006
Replies: 6
Views: 1,357
Posted By dubeyprateek
What do u think about intiger overflows?
int can store maximum of 2,147,483,647.
Forum: C May 24th, 2006
Replies: 2
Views: 9,076
Posted By dubeyprateek
Dialog Box Fonts
The system uses the average character width of the dialog box font to calculate the position and dimensions of the dialog box. By default, the system draws all text in a dialog box...
Forum: C May 24th, 2006
Replies: 2
Views: 9,076
Posted By dubeyprateek
u cant change font of a dialog box on the fly, well u can try subclassing ur controls and thn processing WM_SETFONT msg.
Forum: C May 19th, 2006
Replies: 2
Views: 898
Posted By dubeyprateek
You mean whether Disck1 or Disck2 is inserted?? :cheesy:
then you probebly need a magician insted...! :eek: :mrgreen:
Forum: C May 18th, 2006
Replies: 0
Views: 2,081
Posted By dubeyprateek
Introduction
There are many times when we try to create a binary search tree of many different data types. This article explains creation of a template library CTree. template <class T>class CTree...
Forum: C May 16th, 2006
Replies: 3
Views: 4,932
Posted By dubeyprateek
If your are trying to sort a MultiDimensional array of character you can see this. this is simple bubble sort

#define SIZE 100
void Sort(char arr[SIZE][SIZE], int NoOfRows) {
int i=0,j=0 ;...
Forum: C May 12th, 2006
Replies: 2
Views: 1,112
Posted By dubeyprateek
hi
There are two things first
const double *highest = a;
this line says highest is a pointer to a costant means u cant change the content highest is pointing to, next

if (a[i] > *highest)
...
Forum: C May 12th, 2006
Replies: 8
Views: 1,726
Posted By dubeyprateek
hi
looking at ur requierment, u can write in swap funtion like

for(int i=0; i<=4; ++i) {
arr[i] = arr[i] + arr[9-i] ;
arr[9-i] = arr[i] - arr[9-i] ;
arr[i] = arr[i] - arr[9-i]...
Forum: C Apr 20th, 2006
Replies: 2
Views: 2,640
Posted By dubeyprateek
are u working on a command line app??

try this

while(1) {
if (((str[i] = getch()) == '\n') {
break ;
}
else
++i;
Showing results 1 to 40 of 45

 


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

©2003 - 2009 DaniWeb® LLC