|
Ranojay wrote: I see the shortcut and the aproperty window... where I cannot select any file as executable.
Let me confirm your actions;
You clicked on User's Desktop icon at the left pane/splitter window of File System tab, to pop-up a submenu and clicked on Create Shortcut on User's Desktop. The result was a new entry, named something like Shortcut to User's Desktop on the right pane/splitter. Is that right ?
If so, you just set the Target property of the new shortcut with your desired file name. (No need to specify the folder) - any way am not that much sure about this way. I will give you another fool proof way.
Just click User's Desktop, the right pane might be empty now. Click on the right pane so that you get a pop-menu like the one you seen in the previous steps. Select Create New Shortcut , the result will be a File Open Dialog (Step 5 on previous post) and continue the other steps which I described in previous post.
If this one doesn't worked, tell me your personal e-mail id, I will send the screen shots. (I don't know whether I can upload a zip file to Codeproject)
|
|
|
|
|
It works but ... The Icon cannot launch the executable,
actually I have a "Bin" folder under application folder where I keep the Binaries... I can select the executable from it..but in the runtime it does'nt serve the purpose
and all the file stays even after uninstalltion ... how to deal with that ....
here is my email id sen_ranojay@email.com any suggestion and help invited
thanks a lot
|
|
|
|
|
|
I can Install... I mean I can copy the files and folder on to users system but not prperly.
the system is not working perfectly...
The user icons are not geting created and ...start menu entries are not added properly...
but it surely creates the files and folderd I want to create on users system...
and deletion of the files is also not working... Half working ...half not
what to do ...I need the proper steps for creating an installer prperly
|
|
|
|
|
Hai!
I am having the image data of an JP2 image in a byte array, i want to convert this byte array into JPG image's byte array!!
How can i do it Any Clue or suggestion?
Thanks!
|
|
|
|
|
search for JPEG tag in jp2 image and save that portion as a .jpeg
|
|
|
|
|
Convert the JP2 to a neutral format (I'd read it into a CxImage[^]) then save it to a new file as a JPEG?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
See here[^].
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
In 8 bits bitmap, i learn that it has a color table in the file and the region
of bitmap data are indexes of the array. I want to get a part of image from the
orignal 8 bits bitmap, but i don't know the relation between bitmap data and
color table.
If someone know it, please tell me.
you may send it to my email.my email is: shuhua_song@sina.com
Thank you very much!
|
|
|
|
|
songhunhun wrote: but i don't know the relation between bitmap data and
color table.
Since the bitmap is 8 pixel the maximum color it can represent is 256. so the color map will be holding a list of 256 RGB values.
If we want to display the 0th pixel of a bitmap, will take the value present in the data for 0th pixel( the value will be 0 to 255 ), for instances say 75. This means in the 0th pixel, show the color in 75th index of color table.
|
|
|
|
|
|
Hi, I've been working on a Point class for about 2 weeks now, and I haven't been able to get anywhere.
The specifications are:
+There are two double data members, x and y
+Write overloaded and default constructors
+Write mutator and accessor functions.
+Write an addition function that returns a Point object. Addition is defined such that the x member of the calling Point and the x member of the rhs (right hand side, i.e., the parameter ) Point are added. Return a new point with the added values.
+Write a subtraction formula that returns a Point object. Subtraction is defined such that the x member of the rhs or parameter is subtracted from the x member of the calling Point. So too for the y member. Return a new point with the subtracted values.
+Write a print function that prints a point as follows: ( 2, 3 )
the main is supposed to be something like this:
main( )
{
Point A(1, 2), B(3, 4), C;
cout << "the x value of A is ";
cout << A.GetX( );
cout << endl << "the y value of A is ";
cout << A.GetY( );
cout << endl << "B is";
B.PrintPoint( );
C = A.AddPoint( B );
cout << endl << "A + B is " ;
C.PrintPoint( ) :
C = A.SubPoint( B );
cout << endl << "A - B is " ;
C.PrintPoint( ) :
cout <<endl << "Set C to (0, 4):";
C.SetX(0);
C.SetY(4);
cout << endl << "C is now " ;
C.PrintPoint( );
return 0;
}
anything helps!
thanks!
|
|
|
|
|
You have a potential bug in your specification (yes, really)
Addition does not affect Y. Shouldn't it? Usually it should.
But what are you having trouble with, exactly? I don't see any big problems here..
|
|
|
|
|
That is fairly basic stuff. What have you done, so far?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Can I suggest you look at this tutorial[^]? It uses a Rectangle class as a sample, which is close enough to a Point that you should be able to work out what's waht?
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
any body help me in implementation of berlekamp massey algorithm
|
|
|
|
|
|
hi
i find the linear complexty of sequence but how i find the polyomial
|
|
|
|
|
|
hi
this is not a simple berlekamp massey algorithm
i need the simplest algorith to find the linear complexity
the code is available here at codeproject but it is not runnable i do not understand
|
|
|
|
|
Hi,
does anyone know some simple example how to play or capture audio from
internet stream?
Is there any SDK or DirectSound function(s) to implement such think.
Thank you
viliam
|
|
|
|
|
I want to run my exe in admin always irresepective of the user. ofcourse i dont want to run from the run as option. can any one tell me how i will programatically do that.?
birajendu
CyberG India
Delhi
India
|
|
|
|
|
|
Use AdjustTokenPrivileges() . Some examples are here, and in this article about 1/3 of the way down.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
I have written a multithreaded application, and am wondering if I need to declare any of the shared variables as volatile. I have searched online for a while, but have thus far found no definitive source on when you need to use this qualifier. My code operates similarly to the following:
#include <windows.h>
#define ITER_COUNT 300
#define BUFF_SIZE 10
class Buffer {
public:
const size_t length;
const HANDLE canWrite;
const HANDLE canRead ;
double* data ;
size_t writeIdx;
size_t readIdx ;
Buffer(size_t maxSize) :
data(new double[maxSize]()),
writeIdx(0), readIdx(0), length(maxSize),
canWrite(CreateSemaphore(NULL, static_cast<LONG>(maxSize),
static_cast<LONG>(maxSize), NULL)),
canRead (CreateSemaphore(NULL, 0 ,
static_cast<LONG>(maxSize), NULL)) { }
virtual ~Buffer() {
delete[] data;
CloseHandle(canWrite);
CloseHandle(canRead );
}
};
void ThreadFunc(void* var) {
Buffer& buffer(*static_cast<Buffer*>(var));
for (size_t idx = 0; idx < ITER_COUNT; ++idx) {
WaitForSingleObject(buffer.canWrite, INFINITE);
for (size_t j = 0; j < 5; ++j) {
buffer.data[buffer.writeIdx] += idx + j;
}
ReleaseSemaphore (buffer.canRead, 1, NULL);
buffer.writeIdx = (buffer.writeIdx + 1) % buffer.length;
}
}
void main() {
double result = 0;
Buffer buffer(BUFF_SIZE);
HANDLE threadHandle = (HANDLE)_beginthread(&ThreadFunc, 0, buffer);
for (size_t idx = 0; idx < ITER_COUNT; ++idx) {
WaitForSingleObject(buffer.canRead, INFINITE);
result += buffer.data[buffer.readIdx];
buffer.data[buffer.readIdx] = 0;
ReleaseSemaphore (buffer.canWrite, 1, NULL);
buffer.readIdx = (buffer.readIdx + 1) % buffer.length;
}
} Clearly the const members need not be volatile, and the read/write indices are only read or modified in a single thread, so those are ok. However, do I need to declare the Buffer::data pointer as volatile or not?
I have another multithreaded application that has n > 1 threads, such that each thread modifies some data prior to exiting, but does so within a mutex-protected bit of code. Should this variable be declared as volatile as well? Thank you in advance for any assistance.
Sounds like somebody's got a case of the Mondays
-Jeff
modified on Thursday, May 7, 2009 3:41 PM
|
|
|
|