So why isn't the community start an open source project and make a better reflector?
thoru
Posts
-
Thanks, Red Gate -
Bob Muglia leaving MicrosoftWhat goof up @ PDC this year?
-
Avoid if else...Hello. In .NET you could do something like: Define an array of minlimits and maxlimits, define a class C to hold your methods, methods that are named in the line of M1, M2 and then use invokemember to call them like this: For(int i = 0;i<bound;i++) { if((minlimits[i]<n)&and(maxlimits[i]>n) C.GetType().InvokeMember("M"+i.tostring(), .....) } In C++ i think you can do this with an array of pointers to functions, but i quit C++ a long time ago and i don't know for sure. Also, the .NET solution is not tested, but looks good:P
modified on Thursday, June 11, 2009 10:10 AM
-
What's the cheesiest song you wouldn't wanna get caught dead listening to but secretly enjoy? [modified]This is a really really cool song:)
-
What's the cheesiest song you wouldn't wanna get caught dead listening to but secretly enjoy? [modified]:)) Now really, O-Zone is one band i would not want to be caught listening to. And thank god, there are little chances that will happen since i hate them:D
-
stdcall_api & troublesRoger, believe me or not, your post actually helped me, so it wasn't a complete loss of a post. First of all, thanks to Roger and toxxct for your posts. So this is my fix: I did a compare in the sdk between v5 and v6 in the include folder and looked at winnt.h Where the stdcall_api was mentioned in v6, i changed it back to v5 which strange enough was __stdcall. I have no clue as to how that was changed in there (i mean __stdcall being replaced bye stdcall_api) but this fixed it. They should have a #ifdef NEWBIE_IN_C {code for restricting access to this super sensitive keywords} #endif. -Thoru, a newbie in C++
-
stdcall_api & troublesYeah, plus, i do not see why it would affect my other builds or this one, if i take the #define out. I think i have stumbled upon something very strange with this stdcall_api.
-
stdcall_api & troublesNope, still did not fix my problems, but thank you:)
-
stdcall_api & troublesError 1 error C2146: syntax error : missing ';' before identifier 'Int64ShllMod32' c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h 654 Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h 657 Error 3 error C2146: syntax error : missing ';' before identifier 'Int64ShraMod32' c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h 661 Error 4 error C2371: 'stdcall_api' : redefinition; different basic types c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h 661 Error 5 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h 664 Error 6 error C2146: syntax error : missing ';' before identifier 'Int64ShrlMod32' c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h 668 Error 7 error C2086: 'ULONGLONG stdcall_api' : redefinition c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h 668 OSPI Error 8 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft sdks\windows\v6.0a\include\winnt.h 671 This kind of errors:D
-
stdcall_apiHello, I do not know if this is a horror or not, but it was a horror for me. In a project i wrote this little gem:
#define stdcall_api __stdcall
Do not do that ever. Now i cannot build any project in Visual C++ (2008). I think this is really a horror, no?
-
stdcall_api & troublesHello, Being a very noob at c++, i managed to screw it up completely with this little piece of code
#define stdcall_api __stdcall
Now, at the time, i did not know this would hurt me in so many ways that would make the Spanish Inquisition proud, but apparently this had the effect of generating me 272 errors , all located in winnt.h and winbase.h, in all my Visual c++ 2008 projects that i have and need to build. My question is: can i get my projects building again? Thank you very very much, A noob @ c++
-
Data Access Layer ServerYeah, i want to use WCF too, but i don't think that will happen. I still hope though:)
-
Data Access Layer ServerHello all, I don't know if i posted on the correct forum (i'm thinking i should use the Architecture forum) but here goes. There is talk at my workplace that we should move the DAL and Business Layer on a server and just ship the interface. The interface would connect to our server and use the Business Layer. How can this be done, except of course, web services (and probably WCF)? I would use Web services, but the project manager does not like that idea. Thank you.
-
Lock a file for reading when uploading it to FTPThanks Luc. The signal idea has crossed my mind, but not in such a superb manner:). I was afraid i would have to modify quite a lot, and that is not far from truth. I retrospective, the whole architecture of the program should be reconsidered:D. Hopefully i'll have the time to do just that, and then i will implement your solution. Thx all.
-
Lock a file for reading when uploading it to FTPThe consumer searches the ftp for a list of files with a given extension. (but it can also grab all the files from ftp, regardless of the extension. This part is configurable)
-
Lock a file for reading when uploading it to FTPHello all, I am having a bit o problem and i need a simple, elegant fix. The problem: I am uploading a file to a ftp using FtpWebResponse and the Write method from a ftpRequest. I need this file locked for reading until all content has been uploaded to the Ftp and the write method has stopped. Another app. (actually the same, but on a different machine) will download this file, and i need to read it only when the write method has stopped. So far, my solutions do not work fully or are very very ... ugly:D Thx
-
Question regarding a lock on a fileHello, I think this is the first time i post a question on the codeproject, so hope it goes well:) So, the question is: How can i lock a file while it is being written so that other processes cannot move/delete or access it. I have a file that is being written into by an application on a remote machine and a windows service on the local machine that connects to the remote machine and downloads that file. The problem is that i want to download the file only after the write process has stopped completely. How can this be done? And a related question: How can this be done if i try to download the file from a ftp server. Both remote and local machine are under XP and the applications are written in c#. Thank you