|
pix_programmer wrote: How to do this? Coding!
Another option would be using std::vector , and using the insert[^] method.
Veni, vidi, vici.
|
|
|
|
|
CPallini wrote: Coding! Now that's a brilliant idea; who'd a thunk it?
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I know I'm an innovator.
Veni, vidi, vici.
|
|
|
|
|
CPallini wrote: Another option would be using std::vector , and using the insert[^] method. I agree.
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
1. determine the required size of the resulting container
2. Allocate a container of that size on the heap.
3. copy the elements to the new container.
If you have trouble following those steps, you better learn basic C/C++ by reading a good book or tutorial. A good one can be found at http://www.cplusplus.com/doc/tutorial/[^]
|
|
|
|
|
This is a simple program. I think in my opinion programming skill will develop through thinking, practice etc.
here your problem is simple. so try to implement self such a problem. i will give the logic.
1. allocate required array size for destination array.
2.copy the content from source array to destination.
I also agree with Richard and pallini 
|
|
|
|
|
Hi every body
I develop an ActiveX control (.ocx) but I have a problem with the use of the ribbon resource in this project. I want to add the ribbon but i don't know how to do it.
|
|
|
|
|
Start with these links[^].
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
|
It's the result of a Google search which may help in your researches.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I want to use many a rc file in vc6 project when compiling, dsp file format is below:
# Begin Source File
SOURCE=.\05.rc -> corresponding to r5.h
# End Source File
# Begin Source File
SOURCE=.\04.rc -> corresponding to r4.h
# End Source File
# Begin Source File
SOURCE=.\03.rc -> corresponding to r3.h
# End Source File
# Begin Source File
SOURCE=.\r5.h
# End Source File
# Begin Source File
SOURCE=.\r4.h
# End Source File
# Begin Source File
SOURCE=.\r3.h
# End Source File
there is a link error(cannot open file ".\Debug\05.res") when compiling,
03.res is created, 04.res and 05.res are not created,how can I do ?
modified 28-Nov-12 2:17am.
|
|
|
|
|
Do not do this by editing the .dsp file. Use the Solution window of the IDE to add files to your project.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
when Adding another rc file to workspace, IDE prompt only one resource file can be added to project when compiling。
|
|
|
|
|
yingkou wrote: I want to use many a rc file in vc6 project when compiling, dsp file format is below: You can have only one .rc file, but I believe you can have multiple .rc2 files.
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
You can open the primary .rc file in text mode and include the other .rc files. We do this for translation purposes in one of our applications.
|
|
|
|
|
Hello Friends
I ported my application from VC6 to VS2010 in mfc.In vc6 , using 8bit indexed bmp as Dialog'Toolbar. But in VS2010,after porting Icons colors are corrupted and not showing icons properly.And Icons which are disabled are hidden. Its showing up only when they get enabled.
So,now m facing two problems:
first,Icons colors are not proper.
Second,its showing background color too. m Guessing that background color only hiding my icons on disable.Its not showing transparency as it is happening with 8bit images.Any Ideas?
I tried by changing bmp to 32 bit then icon'color came fine but other prob still.
Any help will be Appreciated.
Thanks & Regards
Yogesh
|
|
|
|
|
|
Thanks Hadi.
Icons are coming fine now after changing them to 32 bit and On Disable they stay there bcoz it has transparency channel in it.
But this Doesnt solve my problem completely.
What happeniing is now that When I am disabling any Toolbar Icon,It looks like colored and dim as compared to total gray in VC6.
Any Ideas?
Thanks
Yogesh
|
|
|
|
|
You're welcome
You must use the tool(Pixelformer) and edit your bitmap.
It supports 32 bit and trancparency.
I've tested it and I'm sure it works.
www.logicsims.ir
|
|
|
|
|
I want to use macro in .dsp file for load different file to workspace,just as below:
123 is a sub-folder of 04 project folder and there is a 04.rc and resource.h
!IF "$(CFG)" == "04 - Win32 Release"
RCF=..\\123\\04.rc
RCH=..\\123\\Resource.h
!ELSEIF "$(CFG)" == "04 - Win32 Debug"
RCF=..\\123\\04.rc
RCH=..\\123\\Resource.h
!ENDIF
# Begin Target
...
# Begin Source File
SOURCE=RCF
# End Source File
Begin Source File
SOURCE=RCH
# End Source File
# End Target
Open workspace by VC6 IDE, RC is not loaded and RCF and RCF are display as a file name in workspace but empty,why?how should I do for doing this work well。
Change macro definition as below,result is same
RCF=.\123\04.rc
RCH=.\123\Resource.h
|
|
|
|
|
What are you trying to achieve by doing this? ...I don't remember having to edit this file directly ever, you should be able to make any changes regarding project files and compilation changes from the IDE.
|
|
|
|
|
different mode needs different rc file
|
|
|
|
|
I can see that... but why do you need a different resource for debug and release?
|
|
|
|
|
Hi. Help me, please! Why this class doesn't work for Subtraction, Division and Square Root. When I try to get results for Subtraction, it output right answer, but with any trash. And When I try to get answer for Division and Square Root, it just brakes and don't output anything. For Addition and Multiplication class work correctly. Thank U very mush, if you will help me.
Its the link to this class
http://www.codeproject.com/Articles/1202/A-class-for-operations-with-Large-Integer-Numbers
|
|
|
|
|
Typically for questions regarding a specific article, you'd want to ask those in the specific article page (see the large "Add Comment or Question" button in the bottom of the article?). Also, your question isn't all that clear, so see if you can rephrase and make it more clear.
|
|
|
|