|
I am getting so frustrated at people who delete their questions when they get an answer.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I have seen some weird stuff where a file name or path gets truncated. So it ends up being possible that that file exists twice in the zip file. Once in the root and then once in a subfolder, but when unziped the folder structure is not recreated.
Hope that helps.
Ben
|
|
|
|
|
Wow that is strange. I wonder why he decided to delete his question?
Ben
|
|
|
|
|
The zipping process normally involves the use of a temporary file.
I'm unsure if the unzipping process uses temporary files in the same way.
Under XP, many temporary files are stored un the users temp folder in C:\Documents and Settings\User\Local Settings\ which can become full and cause strange things to happen.
This space can be reclaimed by performing a Disk Cleanup from:
Start-->All Programs-->Accessories-->System Tools-->Disk Cleanup
I don't know if this will have any affect? Maybe this will help?
Regards
Wayne Phipps
____________
Time is the greatest teacher... unfortunately, it kills all of its students
View my Blog
|
|
|
|
|
I concur.
How about changing the forums, so a message (original or reaction to it) can only be deleted/modified for as long as there are no replies to it ?
|
|
|
|
|
Cross-thread operation not valid: Control 'listBox1' accessed from a thread other than the thread it was created on.
what is the problem, what is the solution??
Amr Abdel-Mohsen Hafez
Software engineer
Cairo
E g y p t
|
|
|
|
|
This happens when you try to access a Control on your GUI from another thread. The GUI is run on the "main" thread and only functions running in that thread are allowed to access/use/modify Controls on the GUI. To solve this you need to use Invoke or BeginInvoke to call a function on the GUIs thread to do the work that you want done from a background thread. Check out this[^] article for an in-depth explanation and example on how to solve this problem.
|
|
|
|
|
The problem is obvious; You can not access a member of a different thread.
So what is the solution?
1) try "CheckForIllegalCrossThreadCalls = false" statement
2) try to call the modification in the thread where the list box is i.e
- create a function to change the list box
- create a delegate to the function
- use the invoke() method of the class where listbox belongs to.
Regards
zafer
|
|
|
|
|
Hello there,
I need to connect internet via C# using dialup. I can dialup existing dialup connection using wininet API but I wonder some body tell me how can we pass userid,password n dialup number at runtime. It would be appreicated please...
Best Regards,
Yousuf
|
|
|
|
|
The Project entitled "Employment Record Maintenance", where you have to implement following basic features.
Main Menu:
1. Search for an Employee
2. Add an new Employee
3. Edit an Employee Record
4. Delete an Employee Record
5. Exit
Search : The main task of this function is to search for an employee based on the Employee name or Employee No.
Add : The main task of this is to add an Employee (Emp Name, Emp ID, Emp Designation, Emp Date of Joining)
Edit : The main talk of this function is to edit an existing Employee record.
Delete:The main function of this to delete and employee record.
Keep all employees data in a flat file and you have to implement in Unix Shell programming.
Please help me out
|
|
|
|
|
swapnik wrote: Keep all employees data in a flat file and you have to implement in Unix Shell programming.
Ok, this is obviously school assignment, and it's UNIX SHELL PROGRAMMING. What makes you think C# forum is good place to ask for help? If your task is to write unix shell script, write unix shell script, not C# code.
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
First of all you should change your post title; you are not looking for code, you are looking for a complete homework.
Second instead of wasting your time for searching a complete hw, try to learn shell programming. What you are trying to do can be done very easily. In shell programming you dont have too much option to do.
|
|
|
|
|
Hi, ive got a program with a treeview.
The treeview has an image-list with some icons.
Everytime I select a node in the treeview, the icon of that node becomes the first icon in the imagelist.
When I select another node, the icon of this node becomes the first one in the list an the icon of the node that was selected before becomes the right icon.
Maybe someone could tell me what im doing wrong or what to do
|
|
|
|
|
Make sure the imageIndex and selectedImageIndex are defined. Typically this happens when the node is created e.g. treeview.Nodes.Add(key, text, imageIndex, selectedImageIndex);
|
|
|
|
|
YES that was the problem, i didn't know that theres an image index for a selected Node!
Thank you very much! Now it works!
|
|
|
|
|
hi
i need an article that show me how to write my own custom controls, does anybody have this article in vc#2005 ?
thanks
|
|
|
|
|
|
How can I make that my drawing should be always starting from the center? I mean that I want to see the whole drawing even if the window will resize. Please help.
|
|
|
|
|
OK, you asked two different things here.
How are you drawing it now ? If you're using a picture box, you can set it's display mode to resize the image to fit.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Oh dear, I do not mean how to Retrieve Data From database, but I mean is how to Retrieve the data set according to the conditions Assume more than 10 conditions, but not all at one time but in according chosen The user
|
|
|
|
|
Post a reply in the thread that you are talking about instead of creating a new thread.
---
single minded; short sighted; long gone;
|
|
|
|
|
1 - if you want people to answer you, don't keep deleting your posts, it makes the forums messy
2 - OK, where do you want to get this data set from, if not a database ? I can see now that we had 0 chance of understanding what you want from the original question, but I'm no closer to being certain what you mean.
You want to have 10 different conditions, but not all at the same time. Like 10 different searches ? Do you mean you want an OR search on different columns ? In the database ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi
I am getting this error can any obe help me
A generic error occurred in GDI+.
my code is
Bitmap bmp = myIcon.ToBitmap();
bmp = Bitmap.FromHicon(shinfo.hIcon);
bmp.Save("c:\\test.jpg", ImageFormat.Jpeg);
what is wrong in it?
Thanks,
Rushiraj
|
|
|
|
|
Hi Rushiraj,
On which line does the error occur? If it's the FromStream line, I too have experienced this error - From what I can figure it's due to corrupt data being in the stream, which without seeing how you are filling streamImage I can't tell. Slap in a couple of breakpoints and perform some checks to see if you are receiving all the data that you sent - I'm experiencing the problem of not receiving all data,and have just posted.
Regards,
Satips.
|
|
|
|
|
hi
error occurs at this line
bmp.Save("c:\\test.jpg", ImageFormat.Jpeg);
and data is correct.
If I do only
Bitmap b = new Bitmap(32, 32);
b.Save("c:\\test.bmp", ImageFormat.Bmp);
it is also giving same error.
I think it should create blank bmp.
Thanks,
Rushiraj
|
|
|
|