Hi! I use VS 2005, and C#. If framework 1 and framework 2 installed, in a project I use only .net 1 compatible thinks, but when I compile the executable, and transfer it to a machine witch haven't got .net 2, gon erro message. How can I adjust my project to require only .net 1? Thanks for help.
nemopeti
Posts
-
Switching between .net 1 and 2 ? -
Missing System.Data.ODBCHi! I try to develop my first PDA application, and it works fine, until I not use database functionality. I try to manage an access database via ODBC, but System.Data.ODBC is missing in my mobile solution, what do I need to make this work? Need solution for Win Mobile 5, and 2003 too. Or is there better format, or way for databases on PDA? I have Visual Studio 2005 Professional, and SQLExpress 2005. If somebody have links for PDA sourcecodes please send to me. Thanks for help!
-
Serial port logger testing solutionHi All! I develop some kind of serial port logger app, and I need to test id witouth the target device. I have sample output in a text file from the device. How can I do the test? Sombody know some port emulator, witch read from file, and send tata, or can I do some loopback somehow? Thanks for help!
-
Monitoring installationsHi! I try to make som kind of install monitor program, I try sevral ways, the current working soltion is take before and after snapshots, and compares it. The problem with it, is the other activities on the computer, to filter it, I must know who make the canges. Can somebody tell me how can I monitor the filesystem, and registry changes, occures by a specified application/thread? I opened for any soltion. Thanks for help!
-
Object as databaseThank's for quick replay. I do this way, some times ago, but now, I wont write all the search, and filter method by hand. Becouse of the complex querys, witch generated at runtime, as the user wants. Ex.: somethimes I ned a quer like this: select * from partners where id<10 and name like'Mr.%' ..... and somethimes need group by option too.
-
Object as databaseHi to all! A short question: Is it possible, to use an object,list,array or something like that as a database? So I want to run SQL like queries on my object. Ex. I have a list, witch contains Person object (List Persons) Person class for ex.:
class Person { private int _id; public int ID { get{return _id} } private string _name; public string Name { get{return _name} } }
I want to run a select for those persons who have id under 10 like this: SELECT * FROM Persons WHERE ID<10 How can I do this? I try it witd bindingsource, try to add my class as project datasource, but nothing work :( Thanks for help. -
FindWindowEx API and disabled buttonsThank's for your help, I think that's what I looking for :)
-
FindWindowEx API and disabled buttonsHi All! I creating a program, wich is like a macro recorder. It's work fine, and found windows, buttons, and all I need. But I want to send button clicks too, and my problem is I can't detect the enebled/disabled status of a button. I need this status, becouse the API find the buttons wich is not active :doh:. So how can I detect this status of a button, when I know only it's handle and then informations given by GetWindowInfo API. Thank's for answer!
-
Application deep logging/traceingTank's for the answer! I try to use the refered article, to work out the correct solution. -- modified at 3:37 Thursday 20th July, 2006 I checked the article, its good, but isn't do what I want. This type of logging stil need to be modyfy the target program. I need solution to log a program/process without modifying it's code...
-
Application deep logging/traceingThank's I alredy know about NLog, and it's a good thing, but it's do the same, like my own loging engine. Nlog write to file, what you want, but you must tell it, what, where, and when. So it isn't automatic, and still ned to write the logging messages into the code. My solution has 3 projects, and a lot of forms, and classes witch have a tonn of functions, and events, so I don't want to write logging procedure for each method... If you ever yuse some profiler, like Ants, or ReSharper yo see te way I like. These pograms need only the target application executable fle, and they listen into the app code, and tell you what happend in where, ad the target application don't need to modyfi. -- modified at 16:59 Wednesday 19th July, 2006
-
Application deep logging/traceingHi all! I need some solution, to do a "low level" logging for my application. In teh log, I want to see everything like function calls, strak trace, button events, textbox events.... like the profilers do. Until now, I write my own loging system, and send messages to the logfile by hand like this: Log.LoggThis("Something went ok",LogType.Message); or Log.LogThis("some error occured",exception,LogType.Error); But I think is there a better vay to do this vithout hand coding in every method, and event handler.... If anybody have some idea, please wrote it to me. Thanks, and sorry for my bad english.
-
File.Open method for large filesThanks for the answer! I try change the compression level (currently is 6, and the maximum is 9). But I don't understand, why is the compression level changes memory usage, I think bigger level eat mutch CPU time, but memory... So you said File.Open method handle the large file problem? And what about reading time?
-
File.Open method for large filesHello! I loking for some solution to get a stream from large files. I writing an application witch uses SharpZipLib to create .zip archives. I use File.Open to get a filestream , and then giv it to the component, witch writes to the zip stream. It works great, but in bigger files the app use a great amount of system memory. I don't know how can I make it better, how can I make som keind of pipeline, or list from the stream... Can someone have an idea? Thanks for help!
-
Copy or read locked/in use filesThaks for your answers! I hope someone can help me solve this problem. I think (and hope) is there a comand line util or an assemby program, witch can do anithing with a file, witout the permisson of windows... PS.: here you can find some "magic" program , they said, can unlock locked, or in used system or other files...
-
Copy or read locked/in use filesAnd is there any method to copy these files? How about the unlocker programs, how they do it?
-
Copy or read locked/in use filesThanks stancrm! It was the first think I try. But some files it not works. Exampl MS Outlook .pst files can't copy, while Outlook is open. :(
-
Copy or read locked/in use filesHi for all! I have some problem, while try to read and copy locked or files witch in use. I try this method, witch work for some file, but the others not :doh: my way:
FileStream fs = null; try { try { fs = File.OpenRead(file); } catch { fs = File.Open(file, FileMode.Open, FileAccess.Read, FileShare.Read); } } catch { try { string NewFile=File+"_"; Fi.CopyTo(NewFile, true); } catch { try { File.Copy(file, NewFile, true); } catch { } } } } catch (Exception e) { MessageBox.Show("Grrrrrr: "+e.Message); }
I miss somethink, or I need a nother way to figure out windows file locking system. I wait for any ideas.... Thank's for help. -
Global KeyboardHooks and WiondowsKeyboardHooksThank's a lot! It's works fine ;) Can you tell me, how can I modify the ManagedHook or HookCore project to tell them witch cases makes this return 1 trick, and witch not. So how can I tell to the class from my C# app to do the return 1 action when my defined keys pressed, and otherwise do the normal action? I think i shoud add somethink like this: List l; Than I add my specila keys to the list, and every time keypress occures I search the list for the actual key, when I find it, do the return 1... Sorry for my stupid questions, but i not familiar with dll manipulation :sigh: I trí to modify SystemHookCore.cpp, and add a method, and a global witch set/store the keycodes, witch is exclude from system hooks. also modify the, managedhooks class, rebuild all, but when I start my app get error: "Entry point(my new function name) was nt found on systemhook.dll" :sigh: Thank's for help! -- modified at 10:29 Sunday 21st May, 2006
-
Global KeyboardHooks and WiondowsKeyboardHooksHi everyone, I have made a c# application (from the article: Global System Hooks in .NET By Michael Kennedy link) that installs a systemwide keyboard hook. This application emulate mouse clicks when specified key pressed. It's work fine, only a little problem with it: When keypess occures, my app hooks it, and Windows hoo too. How can I told windows not to do that? Example: I set the 0 key to do left mouse click, when I press 0 in a textbox or in TotalCommander the click occures, and a 0 character appears in the textbox too :sigh: Hope somebody can help me :-> PS: Sorry about my english
-
Delete a locked fileNothing is inpossibile ;) In Google I fuond a C++ executable witch delete locked files too, Somethime I use this, but I need a way to do this in C#.