1
Answer

Moving items from one listbox to another listbox...please read my requirement

Hi,

friends


I have a requirement in my site that is


I have two tables that is main branch and subbranch
main branch table contain businessid and businessname columns

subbranch table contain businessid and subbranchid and subbranchname

in this businessid in mainbranch table primarykey and subbranch table forienkey...


i have a list box in that listbox i attached businessname and subbranchname according to businessid as a treestructure
that is businessname is parent and subbranchname is child  like wise i attached some items

actually my requirement is if i select anyone that is parent or child that will be moved to another list box ....
if i select parent and click button that businessname and subbranchname will be moved to another list box

ex

listbox1                             listbox2

+mainbranch1                 +mainbranch1
  -subbranch1  - subbranch1
+mainbranch2
 -subbranch2         >>      

if i select mainbranch1 and click on the button that will be moved to another listbox see above......

please give me the code for this one any one can help me ....please........................


alredy i search i am not getting relevent code for this one....please give me the code.......
Answers (1)
0
Sam Hobbs

Sam Hobbs

NA 28.7k 1.3m 13y
I don't know. I have spent some time trying to figure out what to do; I have spent as much time as I should allow for this.

Have you looked at Compile and Link Considerations? If not then that is likely to help. If you have not added Advapi32.lib to the list of libraries for the project then do that.
0
Gaurav Sharma

Gaurav Sharma

NA 19 39.9k 13y
    I have taken that code from microsoft website and link is as follows

http://msdn.microsoft.com/en-us/library/ms867026.aspx

  You will code from mention wording from site "Download the associated CertificateEnrollmentSamples.exe."

  And try to compile "PKCS10AltSubName.cpp" code.I thought crypt32lib was missing but i have found it in the SDK folder. So unable to know the real cause of issue.


0
Sam Hobbs

Sam Hobbs

NA 28.7k 1.3m 13y
The code is not attached. Instead of attaching the code, if you can tell us where you got the code from, then that will help.

Is the code C++? I assume it is. Those error messages are from the link editor which is executed after the C++ compiler. There is probably an #include or possibly an #import missing, but this is an area with a lot of confusing details. Your best chance of sovling the problem is to read what the web site says where you got the code from. There is likely something you are overlooking.