Technology & Programming Enthusiast blog

<
OMNITECHIE
 

C++/CLI debugging

September 23, 2009 13:38 by Rickron

Just in case you recently tried to get into the wonderful world of C++/cli programming in mixed mode but you were having problem to step in a debugging session into you /$%&*&? mixed DLL and were not able to get the all to work.  You are trying to step into the a call in the DLL and it keep getting out.

1-Go into the project setting of your exe to debug

2-Select the Debugging property page

3-Select 'Mixed' for the Debugger type.

 

There is a confusion here because it is probably set to Auto and it would make you believe that it should switch autmatically to the proper debugger but It doesn't.

 Hope it helps.

Rick

 

 


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Concurrent programming on Windows first impressions

July 21, 2009 08:33 by Rickron

  

This book is undoubtely a great welcome in the windows system programming book family: a good first edition.

 My only issue with the book is when they convey the reader to get further readings in different book on the COM Threading subjet. I would have appreciated that the author get through this aspect of "concurrent" programming but without going through the topics that are not thread related. I think it would have been possible.  

Obviously this is just oversight more will come ,stay tuned...


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

I'm a PC --- BSD version

July 19, 2009 03:17 by Rickron

http://www.youtube.com/watch?v=fuZkQvQGIS8&feature=related


Currently rated 4.0 by 1 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Hold on to the end

July 19, 2009 03:04 by Rickron
http://www.youtube.com/watch?v=XTOyVRk8-G4&NR=1

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Apple look like Linux ad !!

July 19, 2009 02:43 by Rickron

http://www.youtube.com/watch?v=MS-aLOm-6Vc&feature=related

 


Currently rated 4.0 by 1 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Unboxing of Mac Book Air

July 19, 2009 00:16 by Rickron

http://www.youtube.com/watch?gl=FR&hl=fr&v=AOAUI0s8zOE

A French one's

http://www.youtube.com/watch?gl=CA&hl=en&v=TYBhuOP1AT0


Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

PhpEd followup

June 28, 2009 00:53 by Rickron

A follow up on phped. Since I was unable to set up my web hosting I am still unable to debug remotely. Somewhat It voids the product value but still i find it useful as a powerful php editor (but less that visual studio in asp obviously). My favorite feature as of now is the way to know which variable is in the scope you're working in. Another one is that it build a workspace from all the php located in folder (in its sub folder), something different from vs (you hasve to manually add all the files).


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (1) | Comment RSSRSS comment feed

NuSphere Phped

May 18, 2009 05:24 by Rickron

I have acquired NuSphere PhpEd this week-end. I should have got this a long time ago. But frankly it really doesn't compare to Visual Studio from microsoft. First because after 2 days it looks like a little difficult to use. My web host doesn't let me access to the /home and /usr and you need it to configure. Sure I will probably have my web host to cooperate in instaling what it s needed to run the debugger but I miss my cozy development environment. But at first sight different other feature like code navigator looks like interesting. You will still need to "find in files" a lot to get through the work but it alleviate  to work with code using global declaration problem. I give you more insight next...

 


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Camelot-info close

February 11, 2009 10:23 by Rickron

Camelot-info was a library specialized in computer book. And not only in the "stupid" guide for windows ( something common when you go in the usual library) but really for hard to find book in region. They were also strong at offering lot of academic title from springer.com by example.

See the aforementioned link for details.

http://www.directioninformatique.com/DI/client/fr/DirectionInformatique/Nouvelles.asp?id=51713

 Yes this is true an old favorite source of computer book is out of business. Ok recent years  most of my purchase was done on internet but when I had the time to verify if in detail a book was appropriate I had no choice to go there. Doing so I was able look a far deeper that just an online book indexfrom something like amazon to know if its content was of any interest and each time I was buying from them the book. The future in computer book in montreal is far from being restful. Actually you have indigo.ca but at my recent visit on the saint-catherine street store i didn't see anything to amaze me and they are really not going to sell academic book from springer.  I still remember all the time to read book there at the of 90' when there was really a crowd (no joke). The little team of vendor seems something to have problem to fulfill the demand of customer. It was also a rare source for specialized software. When you wanted a linux distribution by your hands it was the only place in montreal....

 I wonder if there will be a "closing" sales for the remaining inventory ;)

 Rick

 


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (1) | Comment RSSRSS comment feed

A C Runtime library reminder , Static vs Dynamique version

February 9, 2009 13:13 by Rickron

Recently I got good programmer involved into this frequent trap. They didn't see any problem to link statically to the .LIB version but to only have a bigger module size. This is a simple reminder to expose the difference between the DLL and the .LIB version of the C Runtime library as the possible settings for code generation tab.

The best solution should be to use the DLL version and avoid most problems. But still if you feel comfortable in C and prefer the .LIB version here's this indication: memory allocation made with new and malloc should always be freed in the same module where they are allocated. It pertains only to the .LIB version. For each module (EXE or DLL) that is linked statically to the .LIB version , each module has its own chained list of memory block. The explanation is in the name : "static". When the .LIB version is linked at compile time you have separate set of global and statique variable for the module that will use them. Another time I will probably have a more complete and detailed explanation. Have a good day.


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Old programming book collections

December 14, 2008 12:25 by Rickron

This post is targeting mostly  old programmers but in my case I had a important collections when I was not not old.

 

Then do you think there is any value to your old computer book ? As comic book are gaining value with time in my situation they help me so much. So far I have old win16 book (borland asm compiler doc, borldand C++ 3.1 suite) that I something like to read just for fun to see how much geek I was compared to  today (and so easy it is today in this garbage collector language world). By example would you be able to find a book about the runtime library ( I still have  the standard C library from Plauger) ?   Younger people would probably laugh (at least only if they never had homework using C language). But no jokes , in this book I never have found the litthe tricky details I was finding in MSDN documentation.  

I have noted that with time some books titles are not always re-edited (with most recent platform ) . By example DCOM and COM ,the bare use of C++ on the most recent OS is still an important use in development. But I have a lot of difficulties to find as much variety I was used to find at the end of 90' in libraries. Also  for c++ development on windows vista the only most up to date book I have considered is Windows via C/C++ (the fifth edition of the Advacned Windows bible) and so far I didn't find any book in the same domain that cover the service development by example. In the 2 last edition there are the topics about overlapped file operation topics that are not easily covered. There was probably this book from addison wesley something like "Win32 System Programming" that was also going through security topic but you won't find as much details as you'd have find with Keith Brown title "Programming Windows security". Unfortunately  I think this is not confirmed the latter one has been re-edited for the .net framework only. Even MFC library is suffering. As a lots of possibilities appears with the introduction of the office 2007 controls in the MFC ......you cannot find a single book to help you in vs2008. Ok MFC are probably targeting older programmer but since the control is only available in the MFC I think it would have been valuable to provide younger with learning material to help to use it. There was also the both excellent "Programming Server-Side applications for Windows 2000". I didn't see any re-edition of this book.

I know most people goggle for their code snippet but only goggling will not help you get concept. By example I always wondered what do explain the use of the __stdcall call conventions. Lot of people are probably used to export DLL functions without any concerns but much of the recent OS are probably layout on the precious performance aspect following that since the callee is responsible to unwind the stack lots of the caller side code is avoided. Or did anyone wonder Or did you find a lot of book about kernel debuggin for windows. I found 2. One is for windows XP but solely to help protect yourself against hacker(  I do not remember the name)  and the other just back to me is the Advanced Windows Debugging book. And frankly , given the buzz around the garbage collector language and the .net stuff I do not expect to see a lots of these coming next. It suffice that you search on amazon to understand. Am i wrong , I have read somewhere that Vista was still for its most part developed in C/C++ and I think and I never saw until now driver developed in c#. You are asking to young software engineer fresh out of the school to be able to master the  .net stuff and still to get by themselves in kernel programming (no explained document , the msdn is for reference only and goggle I think is a big waste ). May be there are the old well known code repository web site that with their 10 pages article that will help you.

 We are in a javacript era and app running on browser are pretending to soon mimic our favorite desktop application. But until we have all the fiber optics in the wall and 100 gb/s broadband (or something equivalent to a PC data bus),  I don't see how the lack of  windows c++ learning book to the benefit of the .net or ajax ones will help us in the long term.

Well it seems I have again disgressed just a little bit from my first subject if someone was still doing collections from their old programming books.It looks like I am not giving only a nostalgic value to them...

What is your opinions ?  What are your oldest programming books ?

Why do you keep them in the dust ? Or are thay still of any usefulness maybe ?

 

 P.S.: Recently I had to waste few of them , like the java book from which I had never been able to find a job anyhow.

 

Rick


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

google

November 30, 2008 13:07 by Rickron
I heard recently that google would have a strong tendencies to list web site using php instead of asp.net when site are (obviously ) of the same level . Someone to help me verify that ?

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

A book about threading in c#

November 3, 2008 12:34 by Rickron

I was looking about a book about threading in c# (or VB). Anyone to help me find one ?

 

EL


Currently rated 4.0 by 1 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

A new job

October 6, 2008 11:01 by Rickron

Hi all, I have recently accepted a new job in a far region from montreal. This is why I was a little far from being able to post.

 But Still I will bring you this msdn page that brought to me some interrogations : the build option in c++/cli called mixed mode.

This particular line about the safe clr options  (/clr:safe) retain my attention in the section

"Development Tool and Language/Visual Studio/Visual C++/.NET Programming Guide/Pure and Verifiable Code/How to: Migrate to /clr:safe".

this extract:

"Future versions of Windows will increasingly require components and applications to be verifiable.".

This seems to say that investing your time into the mixed mode options could be complete loss of time in the worst case. Obviously we must accept that when standing in front of security requirement , the mixed switch doesn't hold long. But what if when project do not require such verifiability like in my last job ? When you only need to recycle C++ code (and such code is far from being easily reusable like COM component ). I would really like to have some answer about this little line in the msdn.

 Rickron

 

 

 


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Is Telus frying its built-in GPS function in the HTC Touch Diamond...?

August 30, 2008 13:37 by Rickron

I was looking for a smartphone to replace my Axim x50v to get the cellular service but still keeping the wifi function to get free internet access when near of gateway. But moreover I found the telus htc touch diamond with a GPS built-in feature. This feature is described on the htc web site as a function to avoid relying on the well known NAV GPS service.  But I did some research and again....Beware I am not sure about what I have read on various forums but it seems that they are frying before selling the built-in GPS function obviously to ensure collecting greedily their monthly 10$ for their nav GPS service. It looks very bad because if someone were to buy this device by just looking on the htc web site , http://www.htc.com/www/product.aspx?id=46286 , he would be on the bad track. Does it sound like a possibility like going into legal action on them (and also on other cellular operator ) to stop such bahavoir or get finally what we are paying for. Are they allowed to do such thing ? I would be very happy to know what Telus would have to say if they were asked in the public place... Just imagine that you'd buy a computer but the retail merchant decide to keep the network card working only if you pass by its internet service at high price. I guess, You would be probably slightly upset...

But hey Bell looks like they are doing the same with their wifi functions on the HTC Touch or they choose to sell a CDMA version happily to keep flowing in the money.  Only Roger seems to keep themselves from such nasty ways....

It seems that I will probably have to endure my axim x50v for a time to come until I get answers... or GO ROGERS !!!

 Rickron


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (1) | Comment RSSRSS comment feed

C++/CLI as code behind link!!!

August 29, 2008 11:19 by Rickron

In my last post I was wondering if it was possible to use C++/CLI as code behind but it seems that the answer is "no". But I have found these link to bring some answer. Sound interesting.

 http://forums.msdn.microsoft.com/en-US/vcgeneral/thread/7f2ada00-7678-466f-90f4-beb3f511fda9/

http://www.vistax64.com/avalon/134-xaml-c-code-behing.html

http://www.directorforum.de/showthread.php?t=60472

Rickron


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags: , ,
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

C++/CLI the most powerful language for the .net

August 29, 2008 10:42 by Rickron

I have read that line into an article in the MSDN but still I am still searching in my neighborhood people that have any affinity with this language and I am living a great solitude. ;(  I think this language is effectively interesting. Since the code is not safe or verifiable most of the time and it is not one of the language that can be used as code behind ( but not sure about this I have found a information on windows server 2008 that there would a possiblity to native code under iis, I am still trying this article...) in asp.net I think that the greatest problem about its non-popularity is that the dev studio team or whatever , they deliberately avoid to promote it. Is it because they are expecting to pull the plug on this language in future version of Visual Studio and avoid to create unnecessary worries in their customer ?   I am very curious to see in the future what this language will still deserve from their creator...

 

Rickron


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Old OpenGL animation player

July 1, 2008 12:25 by Rickron

Here's a little gift about my own experience with OpenGL, in Runner. It's an animation player using a syntax I developed for a graduation project. Compared to recent tool this is a joke. There are aspect of this I am not very proud other not so bad. Since I did it a long time ago  some will see that the gui is really light and is only in french, and I did all this using win32 API  in C (no mfc). Give a look to the different script and feel free to try different things. As of now I am looking for the syntax documentation . I come with it later.

As usual it should work with a win32 OS and opengl should used from the local folder but just in case I do not hold any responsibilities for problem incurred by this application or offer setup help.

To resume the features in this funny tool, you should see that .txt file coming along the .exe are the animation and I am not sure all are very good or simply working but the objetchienrectangle.txt is a funny one.

You can browse the animation in the treeview but unfortunately nothing can be modified. But you are free to modify the camera position byt take care to get lost something. Have fun.

 

 Rick

 

 


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

javascript global namespace variable

June 15, 2008 16:18 by Rickron

I am just refreshing  my javascript skill recently and I wonder if does anyone know where in vs2008 we can get the list of the global variable declared in the debugger?

 let's see an unsual couple of line inside the <script> block like that:

( function (){

 ggg = 999;

return function(){return 0;}

})();

It create a global variable ggg that should hold a value as soon the <script> is loaded along the html page. It works because this global variable is helded into memory using the javacript closure mecanism.

In this case (and in fact also for any global variable ) I have a problem to list these variables from container like typing the this keyword into the quick watch and you get the content of current object . Any idea ? Is there a language keyword that would allow us to see these variables ?

Rick


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Hey They Finally Updated it

May 19, 2008 02:18 by Rickron

Compare these two C++ Abstract Declarators documentation articles and Yes they finally fixed their OLD typo error when declaring the PVFN function pointer !!! This error was there since at least end of 90' with VC6 and probably in prior version of the msdn. I smile at this because in 1999 I simply click at the bottom of the window where you can send a feedback to have them fix the problem in future release and the email probably end into a garbage collector...And when I look to the second URL it seems to point to a VC8 URL even if the intended actions is to bring us to the 2005 version. Is it possible that this fix be more recent, even in 2008... C++ Abstract Declarators are a topics so complicated to handle that it should not be allowed to let such documentation error. This fix was probably part of en entire update of their C++ language , it soundsthat  the doc topics seems to have grown over time...

 

http://msdn.microsoft.com/en-us/library/aa245290(VS.60).aspx

http://msdn.microsoft.com/en-us/library/92ddtf6h(VS.80).aspx 

 


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

CRT TV

May 18, 2008 15:54 by Rickron

Recently I have succeeded to get complete my work environment. An ideal one, the one that I would like to have at the office. A old style 14' CRT TV just aside my PC. Last week and in fact for months now I try to get from local electronics retailer, futureshop or bestbuy these little treasure. The one I have bought is a Toshiba CRT flat screen acquired for around 130$. I know it is expensive for 14 inch TV but until now it looks like compiared to LCD TV they are still a lot less expensive and for someone like me that don't  the cable th be entertainment it is perfect.  I said just above that these good quality TV were treasure mostly also because they are now impossible to find in outlet. LCD TV are always less expensive but cheaper one are still too poor in quality. Then I asked you , if you are local in montreal and are able still  able to find such TV let me know. Seriously I think that the next time I see some of them I would need to buy them all. Only alternative is the 21 inch but alas I find them too big.

Rickron


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

C++ compiler for PDA

May 18, 2008 15:38 by Rickron

I am often in situations where I would like to try a snippet of code just for fun and I wonder if there is a possibility in the future that we get for PDA or even mobile device some development tools or simply mini-compiler to try off something different language feature. But simply searching for C++ compiler on www.pocketgear.com doesn't give anything as of now. Why is it so difficult to find such tools that are so easy to find on PC.


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Bitblt equivalent , Enum Class and Form designer juggling

May 18, 2008 12:51 by Rickron

BitBlt

Here's my problem ... I wanted a function similar to the bitblt  function like copyfromscreen but using bitmap and i didn't find anything. Does anyone know how to get through this. But since I am working in C++/CLI I ended up simply using bitblt function directly from user32.dll (without the usual interop mecanism). It worked nicely as usual, thanks to the possibility to "mix" managed and native code, very cool.

Generics 

 Ones will admit that C++/CLI is not easy to use. I just remember  a feature I didn't  use often ( I mean defining my own generic class and reuse them) ,  the "generics" ( the equivalent to C++ template). Mainly because I was in a GUI development work time and  I had some reserve on how generic could be useful to do generic control without losing for example the form designer support (this thing in C++/CLI seems to be so fragile..!!!! and I even wonder if using generic in the c# form designer is still possible). But may be in the next months....I will bring you some example.

Enum types

 Another not so obvious C++/cli language feature : "managed enum"

 Thanks to the MSDN documentation. Suppose you have a enum class with an AttributeFlags applied on it so that it behave like bitwise. Then one would admit that if I use native enum into  an if statement I should get a normal test performed.  Then such code

[FlagsAttribute]

enum class toto

{

a = 0,

b = 1,

c = 2,

d = 3

};

and the if statement. Since I have combined value I have to use  the & operator to get the condition working because the == operator is clearly not sufficient,

 

 

toto ttt = toto::a|toto::b|toto::d;

 

if(ttt & toto::b)

{

int i = 0;

}

I was getting this error :

1>.\enumtest.cpp(22) : error C2451: conditional expression of type 'toto' is illegal

1> This conversion requires an explicit cast (static_cast, C-style cast or function-style cast)

Yes it looks very annoying but this is just another example to which extent is going the correct type use in operator.

And moreover the MSDN provide me with this to fix. At first sight it looks very strange but after all it shows at which point the language is capricious when dealing with managed types...;))

if((ttt & toto::b) != toto())

{

int i = 0;

//--

}

Take note of the right hand side equality operator where we need an on-the-fly constructed enum object to properly have the equality get performed

Until now I think it is the most unsual construct in the language.

Rickron


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Windbg new releases

May 12, 2008 14:56 by Rickron

WinDBG 6.9.3.113 Released

A new version of the debugger tool suite has been published recently.

These tools are free are the best way to learn the intricacities when debugging windows user and kernel.

Unfortunately I am still in the process to finish reading Advanced Windows Debugging , the best book I have found on these tools. But after 3 chapter I have enough info to play.

 

Rickron

 

 


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

migration to win2008

April 21, 2008 10:42 by Rickron

Looks like the recent migration to win2008 for this blong has been a success.... for as little code as I have it is not a surprise. Does anyone know what's new with win2008 and iis7 , or any advantages....

Rick


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Overqualified worker in canada

April 16, 2008 13:49 by Rickron

An interesting link about the fact that we have a growing number of over qualified people in canada. The young boy that serve you your next coffee is probably more qualified than you.

 

Rick


Currently rated 3.0 by 1 people

  • Currently 3/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Stack transformation matrix cont'd

April 7, 2008 13:31 by Rickron

Reading some opengl specifications I was wondering if there are situations where usually we can get over the matrix limit. All the examples I have read look to be limited to a single pushmatrix operation... Any advice ?


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Opengl stack transformation

March 31, 2008 15:50 by Rickron

A simple question for whoever would pass by there. Few years ago I was working with opengl and I realized that there was a very low limit for transformation stack, like 32 i think. Does someone know why such a low limit. In my project I had to stack up these matrix to simulate complex movement and i found that a big limitations. is it still the same problem ? (sorry if it is obvious I didn't update my opengl book, 1998 )

 

Rick


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

C++/CLI programming in mixed mode

March 31, 2008 14:57 by Rickron

C++/CLI programming in mixed mode is an interesting beast  by this time. Obviously I try to avoid the complicated case like low level interop or hosting a .net control into a CView (they offer secretly something for that, a class I just find , CWinFormsControl in the afxwinforms.h). Because when I am talking abour mixed mode programming I think it is meant  also for IJW programming. Ok IJW stand for "It Just Work" .. hey yes it is another microsoft beloved acronym. My most interesting use is to obviously wrap a native library, it is not a secret in the programming industry, this is probably the first intended use of this c++ feature: FIND  A WAY TO REUSE EXISTING CODE EASILY and this is what c++/cli achieve. In a better way even in vs2008. Just think about the useful STL/CLR stl adaptation or the various marshaling library available. In fact it should recently fix probably some strange runtime behavior when mixing compiling STL in mixed mode or even the debugger going crazy (but I didn't test the debugger in this case, I should). The most interesting try out was with extension mfc dll. I was amazed to see how easy it was to convert one into a "regular" one ( yes it depends how much you care with strange warning , but as long it works..,,)and compiling it for the "managed" purpose obviously. Only drawback that I didn't  see "workarounded" in any forum is the almost obligatory use of the AFX_MANAGE_STATE macro that get boring to add anywhere when you are using a gdi resource i guess (just say any where if you want to avoir trouble). And very difficult to diagnose . My next article in mixed-mode programming should be to see how it fit to use generic. A recent problem I got when you define a class as "ref" (managed) you cannot have multiple inheritance (without interface as well). I have read somewhere that the T generic parameter could not appear into the base classe. Another thing going right into the next OMNITECHIE laboratory test for your own pleasure.

Rick


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

AJAX impression in vs2008...

March 31, 2008 14:44 by Rickron

I have played a little with AJAX library part of visual studio 2008.  But hey do someone know how to easily modify this library and/or replace it by  its own, sorry I didn't  find yet that in the various project property setting...  I see that you have to use it, it probably send part of any http request just what it needs on the client to work, but what if someone want to add trace into that library...yeah there is surely something i have missed somewhere.

 

By the same time I have tried the javascript debugger. Looks like very funny. Just to first see the browser global object like the DOM exposing the entire document, very interesting.

 


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags:
Categories:
Actions: E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed